main: Deconfuse $EDITOR

Work around <https://github.com/chrisbra/vim-zsh/issues/33>.
This commit is contained in:
Daniel Shahaf 2022-02-23 18:48:13 +00:00
parent 5459ebcc4e
commit c5ce001467

View file

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