simplify check for bracket under cursor
This commit is contained in:
		
							parent
							
								
									05e4a031c7
								
							
						
					
					
						commit
						2fe9505647
					
				|  | @ -79,10 +79,8 @@ _zsh_highlight_brackets_highlighter() | ||||||
|     fi |     fi | ||||||
|   done |   done | ||||||
|   ((pos = CURSOR + 1)) |   ((pos = CURSOR + 1)) | ||||||
|   if [[ -n $levelpos[$pos] ]]; then |   if [[ -n $levelpos[$pos] ]] && [[ -n $matching[$pos] ]]; then | ||||||
|     local otherpos |     local otherpos=$matching[$pos] | ||||||
|     ((otherpos = -1)) |  | ||||||
|     [[ -n $matching[$pos] ]] && otherpos=$matching[$pos] |  | ||||||
|     region_highlight+=("$((otherpos - 1)) $otherpos standout") |     region_highlight+=("$((otherpos - 1)) $otherpos standout") | ||||||
|   fi |   fi | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue