Переглянути джерело

noop: Tweak condition at Matthew's suggestion

pull/564/head
Daniel Shahaf 6 роки тому
джерело
коміт
9870ccc505
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      highlighters/main/main-highlighter.zsh

+ 1
- 1
highlighters/main/main-highlighter.zsh Переглянути файл

@ -553,7 +553,7 @@ _zsh_highlight_main_highlighter_highlight_list()
# Analyse the current word.
if _zsh_highlight_main__is_redirection $arg ; then
if (( in_redirection && in_redirection != 2 )); then
if (( in_redirection == 1 )); then
# The condition excludes the case that BUFFER='{foo}>&2' and we're on the '>&'.
_zsh_highlight_main_add_region_highlight $start_pos $end_pos unknown-token
else

Завантаження…
Відмінити
Зберегти