Merge 71e797a8b5 into bf4fe1f228
				
					
				
			This commit is contained in:
		
						commit
						d4bc2ff9b2
					
				| 
						 | 
					@ -174,13 +174,5 @@ unset highlighter highlighter_dir highlighters_dir
 | 
				
			||||||
[[ $#ZSH_HIGHLIGHT_HIGHLIGHTERS -eq 0 ]] && ZSH_HIGHLIGHT_HIGHLIGHTERS=(main)
 | 
					[[ $#ZSH_HIGHLIGHT_HIGHLIGHTERS -eq 0 ]] && ZSH_HIGHLIGHT_HIGHLIGHTERS=(main)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# workaround to start highlighting immediately after the creation of a new command line.
 | 
					# workaround to start highlighting immediately after the creation of a new command line.
 | 
				
			||||||
if [[ $#functions[zle-line-init] -eq 0 ]]; then
 | 
					_zsh_highlight_old_precmd_definition=$functions[precmd]
 | 
				
			||||||
  _zsh_highlight_old_zle_line_init_definition=$functions[zle-line-init]
 | 
					functions[precmd]="$_zsh_highlight_old_precmd_definition"";""_zsh_highlight"
 | 
				
			||||||
 | 
					 | 
				
			||||||
  function zle-line-init() {    
 | 
					 | 
				
			||||||
    eval $_zsh_highlight_old_zle_line_init_definition
 | 
					 | 
				
			||||||
    _zsh_highlight
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
zle -N zle-line-init
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue