We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d62baa5 commit cdd7f89Copy full SHA for cdd7f89
changelog.md
@@ -112,6 +112,8 @@ to issue #418.
112
revision zsh-5.8-172-gdd6e702ee or newer is also fine.)
113
[#418, https://github.com/okapia/zsh-viexchange/issues/1]
114
115
+- Improve performance of the `brackets` highlighter.
116
+
117
118
# Changes in version 0.7.1
119
highlighters/brackets/brackets-highlighter.zsh
@@ -51,8 +51,9 @@ _zsh_highlight_highlighter_brackets_paint()
51
local -A levelpos lastoflevel matching
52
53
# Find all brackets and remember which one is matching
54
- for (( pos = 1; pos <= buflen; pos++ )) ; do
55
- char=$BUFFER[pos]
+ pos=0
+ for char in ${(s..)BUFFER} ; do
56
+ (( ++pos ))
57
case $char in
58
["([{"])
59
levelpos[$pos]=$((++level))
0 commit comments