'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 |   for pos in ${(k)levelpos}; do | ||||||
|     if [[ -n $matching[$pos] ]] && [[ $typepos[$pos] == $typepos[$matching[$pos]] ]]; then |     if [[ -n $matching[$pos] ]] && [[ $typepos[$pos] == $typepos[$matching[$pos]] ]]; then | ||||||
|       style=bracket-level-$(( (levelpos[$pos] - 1) % bracket_color_size + 1 )) |       style=bracket-level-$(( (levelpos[$pos] - 1) % bracket_color_size + 1 )) | ||||||
|       _zsh_highlight_add_highlight $pos $((pos + 1)) $style |  | ||||||
|     else |     else | ||||||
|       style=bracket-error |       style=bracket-error | ||||||
|       _zsh_highlight_add_highlight $pos $((pos + 1)) $style |  | ||||||
|     fi |     fi | ||||||
|  |     _zsh_highlight_add_highlight $pos $((pos + 1)) $style | ||||||
|   done |   done | ||||||
| 
 | 
 | ||||||
|   # If cursor is on a bracket, then highlight corresponding bracket, if any |   # If cursor is on a bracket, then highlight corresponding bracket, if any | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue