_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:
Daniel Hahler 2013-11-03 19:48:30 +01:00
parent ea777cd2a8
commit b4df380e26

View File

@ -64,7 +64,7 @@ _zsh_highlight_main_highlighter_predicate()
_zsh_highlight_main_highlighter() _zsh_highlight_main_highlighter()
{ {
emulate -L zsh 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 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_COMMANDSEPARATOR
typeset -a ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS typeset -a ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS