mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-01-30 09:47:13 +08:00
main: Deconfuse $EDITOR
Work around <https://github.com/chrisbra/vim-zsh/issues/33>.
This commit is contained in:
parent
5459ebcc4e
commit
c5ce001467
@ -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 ))
|
||||
|
Loading…
Reference in New Issue
Block a user