mirror of
				https://github.com/zsh-users/zsh-syntax-highlighting.git
				synced 2025-11-03 19:45:46 +00:00 
			
		
		
		
	Avoid some variables bleeding into the user's env.
This commit is contained in:
		
							parent
							
								
									fe3ac1a25b
								
							
						
					
					
						commit
						030cabee59
					
				@ -93,9 +93,10 @@ _zsh_highlight-string() {
 | 
			
		||||
# Recolorize the current ZLE buffer.
 | 
			
		||||
_zsh_highlight-zle-buffer() {
 | 
			
		||||
  setopt localoptions extendedglob bareglobqual
 | 
			
		||||
  local colorize=true
 | 
			
		||||
  local start_pos=0
 | 
			
		||||
  local end_pos arg style
 | 
			
		||||
  region_highlight=()
 | 
			
		||||
  colorize=true
 | 
			
		||||
  start_pos=0
 | 
			
		||||
  for arg in ${(z)BUFFER}; do
 | 
			
		||||
    local substr_color=0
 | 
			
		||||
    ((start_pos+=${#BUFFER[$start_pos+1,-1]}-${#${BUFFER[$start_pos+1,-1]##[[:space:]]#}}))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user