main: Do not highlight empty region between two adjacent $()
Should fix #624
This commit is contained in:
@@ -1238,7 +1238,7 @@ _zsh_highlight_main_highlighter_highlight_double_quote()
|
||||
saved_reply=($reply)
|
||||
reply=()
|
||||
for 1 2 in $breaks; do
|
||||
reply+=($1 $2 $style)
|
||||
(( $1 != $2 )) && reply+=($1 $2 $style)
|
||||
done
|
||||
reply+=($saved_reply)
|
||||
REPLY=$i
|
||||
|
||||
Reference in New Issue
Block a user