*: Fix spelling

Part of PR #832.
This commit is contained in:
a1346054 2021-08-20 11:26:52 +00:00 committed by Daniel Shahaf
parent dffe304567
commit 6e0e950154
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ By default, all command lines are highlighted. However, it is possible to
prevent command lines longer than a fixed number of characters from being prevent command lines longer than a fixed number of characters from being
highlighted by setting the variable `${ZSH_HIGHLIGHT_MAXLENGTH}` to the maximum highlighted by setting the variable `${ZSH_HIGHLIGHT_MAXLENGTH}` to the maximum
length (in characters) of command lines to be highlighter. This is useful when length (in characters) of command lines to be highlighter. This is useful when
editing very long comand lines (for example, with the [`fned`][fned] utility editing very long command lines (for example, with the [`fned`][fned] utility
function). Example: function). Example:
[fned]: http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#index-zed [fned]: http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#index-zed

View file

@ -744,7 +744,7 @@ _zsh_highlight_main_highlighter_highlight_list()
# Analyse the current word. # Analyse the current word.
if _zsh_highlight_main__is_redirection $arg ; then if _zsh_highlight_main__is_redirection $arg ; then
if (( in_redirection == 1 )); then if (( in_redirection == 1 )); then
# Two consecuive redirection operators is an error. # Two consecutive redirection operators is an error.
_zsh_highlight_main_add_region_highlight $start_pos $end_pos unknown-token _zsh_highlight_main_add_region_highlight $start_pos $end_pos unknown-token
else else
in_redirection=2 in_redirection=2