Skip to content

Commit

Permalink
main: Deconfuse $EDITOR
Browse files Browse the repository at this point in the history
Work around <chrisbra/vim-zsh#33>.
  • Loading branch information
danielshahaf committed Feb 23, 2022
1 parent 5459ebc commit c5ce001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion highlighters/main/main-highlighter.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ))
Expand Down

0 comments on commit c5ce001

Please sign in to comment.