mirror of
				https://github.com/zsh-users/zsh-syntax-highlighting.git
				synced 2025-10-30 15:56:28 +08:00 
			
		
		
		
	check KEYS_QUEUED_COUNT and PENDING to skip parsing when pasting
This commit is contained in:
		
							parent
							
								
									6e0e950154
								
							
						
					
					
						commit
						1913518b62
					
				| @ -219,7 +219,8 @@ _zsh_highlight() | |||||||
|   [[ -n ${ZSH_HIGHLIGHT_MAXLENGTH:-} ]] && [[ $#BUFFER -gt $ZSH_HIGHLIGHT_MAXLENGTH ]] && return $ret |   [[ -n ${ZSH_HIGHLIGHT_MAXLENGTH:-} ]] && [[ $#BUFFER -gt $ZSH_HIGHLIGHT_MAXLENGTH ]] && return $ret | ||||||
| 
 | 
 | ||||||
|   # Do not highlight if there are pending inputs (copy/paste). |   # Do not highlight if there are pending inputs (copy/paste). | ||||||
|   [[ $PENDING -gt 0 ]] && return $ret |   (( KEYS_QUEUED_COUNT > 0 )) && return $ret | ||||||
|  |   (( PENDING > 0 )) && return $ret | ||||||
| 
 | 
 | ||||||
|   { |   { | ||||||
|     local cache_place |     local cache_place | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Kuettel
						Daniel Kuettel