_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()
 | 
					_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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue