mirror of
				https://github.com/zsh-users/zsh-syntax-highlighting.git
				synced 2025-11-04 03:56:30 +00:00 
			
		
		
		
	'brackets': Move highlight call outside conditional
This commit is contained in:
		
							parent
							
								
									fd84010252
								
							
						
					
					
						commit
						f4d3dcb42f
					
				@ -80,11 +80,10 @@ _zsh_highlight_brackets_highlighter()
 | 
			
		||||
  for pos in ${(k)levelpos}; do
 | 
			
		||||
    if [[ -n $matching[$pos] ]] && [[ $typepos[$pos] == $typepos[$matching[$pos]] ]]; then
 | 
			
		||||
      style=bracket-level-$(( (levelpos[$pos] - 1) % bracket_color_size + 1 ))
 | 
			
		||||
      _zsh_highlight_add_highlight $pos $((pos + 1)) $style
 | 
			
		||||
    else
 | 
			
		||||
      style=bracket-error
 | 
			
		||||
      _zsh_highlight_add_highlight $pos $((pos + 1)) $style
 | 
			
		||||
    fi
 | 
			
		||||
    _zsh_highlight_add_highlight $pos $((pos + 1)) $style
 | 
			
		||||
  done
 | 
			
		||||
 | 
			
		||||
  # If cursor is on a bracket, then highlight corresponding bracket, if any
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user