'main': Don't highlight in vared
This is a continuation of 451665cb2a which did
the same for the $PS3 prompt.
Reported-by: Sebastian Gniazdowski
			
			
This commit is contained in:
		
							parent
							
								
									e938825a85
								
							
						
					
					
						commit
						e500ca2462
					
				|  | @ -108,12 +108,12 @@ _zsh_highlight_main_highlighter() | ||||||
|   emulate -L zsh |   emulate -L zsh | ||||||
|   setopt localoptions extendedglob bareglobqual |   setopt localoptions extendedglob bareglobqual | ||||||
| 
 | 
 | ||||||
|   # At the PS3 prompt, highlight nothing. |   # At the PS3 prompt and in vared, highlight nothing. | ||||||
|   # |   # | ||||||
|   # (We can't check this in _zsh_highlight_main_highlighter_predicate because |   # (We can't check this in _zsh_highlight_main_highlighter_predicate because | ||||||
|   # if the predicate returns false, the previous value of region_highlight |   # if the predicate returns false, the previous value of region_highlight | ||||||
|   # would be reused.) |   # would be reused.) | ||||||
|   if [[ $CONTEXT == 'select' ]]; then |   if [[ $CONTEXT == (select|vared) ]]; then | ||||||
|     return |     return | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue