mirror of
				https://github.com/zsh-users/zsh-syntax-highlighting.git
				synced 2025-10-23 15:46:27 +08:00 
			
		
		
		
	wrappers: Reimplement using Mikachu's zle-line-pre-redraw hook (workers/36650).
This commit is contained in:
		
							parent
							
								
									d6586e2a4f
								
							
						
					
					
						commit
						aed99f6a3e
					
				| @ -49,6 +49,11 @@ if true; then | ||||
|   fi | ||||
| fi | ||||
| 
 | ||||
| integer zsh_highlight_use_redrawhook | ||||
| if zle -la .match-bracket; then | ||||
|   (( zsh_highlight_use_redrawhook=1 )) | ||||
| fi | ||||
| 
 | ||||
| # ------------------------------------------------------------------------------------------------- | ||||
| # Core highlighting update system | ||||
| # ------------------------------------------------------------------------------------------------- | ||||
| @ -357,6 +362,11 @@ _zsh_highlight_bind_widgets() | ||||
|   done | ||||
| } | ||||
| 
 | ||||
| if (( $zsh_highlight_use_redrawhook )); then | ||||
|   _zsh_highlight_bind_widgets(){} | ||||
|   zle -N zle-line-pre-redraw _zsh_highlight | ||||
| fi | ||||
| 
 | ||||
| # Load highlighters from directory. | ||||
| # | ||||
| # Arguments: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Shahaf
						Daniel Shahaf