From b4df380e267ecac56e6ae9ea3098a15039361f6d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 3 Nov 2013 19:48:30 +0100 Subject: [PATCH] _zsh_highlight_main_highlighter: setopt nonomatch Otherwise it may fail hard if e.g. "=1" is not found while editing the prompt. --- highlighters/main/main-highlighter.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index 8029ae7..d5dff5a 100755 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -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