Skip to content

Commit

Permalink
Merge pull request #975 from rsteube/zsh-zstyle-limit
Browse files Browse the repository at this point in the history
zsh: reduce zstyle limit
  • Loading branch information
rsteube authored Jan 7, 2024
2 parents 545c3eb + 1914bbf commit 36543e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/shell/zsh/zstyle.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (z zstyles) Format() string {
)

formatted := make([]string, 0)
if len(z.rawValues) < 1000 { // disable styling for large amount of values (bad performance)
if len(z.rawValues) < 500 { // disable styling for large amount of values (bad performance)
for _, val := range z.rawValues {
// match value with description
formatted = append(formatted, fmt.Sprintf("=(#b)(%v)([ ]## -- *)=0=%v=%v", replacer.Replace(val.Display), z.valueSGR(val), z.descriptionSGR()))
Expand Down

0 comments on commit 36543e4

Please sign in to comment.