mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-02-13 10:05:31 +08:00
_zsh_highlight_main_highlighter: setopt nonomatch
Otherwise it may fail hard if e.g. "=1" is not found while editing the prompt.
This commit is contained in:
parent
ea777cd2a8
commit
b4df380e26
@ -64,7 +64,7 @@ _zsh_highlight_main_highlighter_predicate()
|
||||
_zsh_highlight_main_highlighter()
|
||||
{
|
||||
emulate -L zsh
|
||||
setopt localoptions extendedglob bareglobqual
|
||||
setopt localoptions extendedglob bareglobqual nonomatch
|
||||
local start_pos=0 end_pos highlight_glob=true new_expression=true arg style
|
||||
typeset -a ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR
|
||||
typeset -a ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS
|
||||
|
Loading…
Reference in New Issue
Block a user