main: Fix blacklist dirs check when there is more than one element
This commit is contained in:
		
							parent
							
								
									3a7ddcda0b
								
							
						
					
					
						commit
						1eedb23c65
					
				|  | @ -771,7 +771,7 @@ _zsh_highlight_main_highlighter_check_path() | |||
|   tmp_path=$tmp_path:a | ||||
| 
 | ||||
|   while [[ $tmp_path != / ]]; do | ||||
|     [[ -n "${(M)X_ZSH_HIGHLIGHT_DIRS_BLACKLIST:#$tmp_path}" ]] && return 1 | ||||
|     [[ -n ${(M)X_ZSH_HIGHLIGHT_DIRS_BLACKLIST:#$tmp_path} ]] && return 1 | ||||
|     tmp_path=$tmp_path:h | ||||
|   done | ||||
| 
 | ||||
|  |  | |||
|  | @ -30,7 +30,7 @@ | |||
| mkdir foo | ||||
| touch foo/bar | ||||
| BUFFER=": foo/bar $PWD/foo foo/b" | ||||
| X_ZSH_HIGHLIGHT_DIRS_BLACKLIST=($PWD/foo) | ||||
| X_ZSH_HIGHLIGHT_DIRS_BLACKLIST=($PWD/foo $PWD/bar) | ||||
| 
 | ||||
| expected_region_highlight=( | ||||
|   '1 1 builtin' # : | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue