main: Use =~ for globbing test
This will set MATCH as needed for the next commit
This commit is contained in:
		
							parent
							
								
									c1a048a084
								
							
						
					
					
						commit
						604075aa90
					
				|  | @ -840,7 +840,7 @@ _zsh_highlight_main_highlighter_highlight_argument() | ||||||
|           (( i += 1 )) |           (( i += 1 )) | ||||||
|         fi;; |         fi;; | ||||||
|       *) |       *) | ||||||
|         if $highlight_glob && [[ ${arg[$i]} == [*?] || ${arg:$i-1} == \<[0-9]#-[0-9]#\>* ]]; then |         if $highlight_glob && [[ ${arg[$i]} =~ ^[*?] || ${arg:$i-1} =~ ^\<[0-9]*-[0-9]*\> ]]; then | ||||||
| 	  (( i += $#MATCH - 1 )) | 	  (( i += $#MATCH - 1 )) | ||||||
|           base_style=globbing |           base_style=globbing | ||||||
|           path_eligible=0 |           path_eligible=0 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue