Skip to content

Commit c5ce001

Browse files
committed
main: Deconfuse $EDITOR
Work around <chrisbra/vim-zsh#33>.
1 parent 5459ebc commit c5ce001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highlighters/main/main-highlighter.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ _zsh_highlight_main_highlighter_highlight_list()
659659

660660
if (( $#in_alias == 0 && in_param == 0 )); then
661661
# Compute the new $start_pos and $end_pos, skipping over whitespace in $buf.
662-
[[ "$proc_buf" = (#b)(#s)(([ $'\t']|[\\]$'\n')#)(?|)* ]]
662+
[[ "$proc_buf" = (#b)(#s)(''([ $'\t']|[\\]$'\n')#)(?|)* ]]
663663
# The first, outer parenthesis
664664
integer offset="${#match[1]}"
665665
(( start_pos = end_pos + offset ))

0 commit comments

Comments
 (0)