mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Options should only be set locally
This commit is contained in:
parent
024c1c46f7
commit
f824e5e84d
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ _zsh_highlight_main_highlighter_check_assign()
|
|||
# Check if the argument is a path.
|
||||
_zsh_highlight_main_highlighter_check_path()
|
||||
{
|
||||
setopt nonomatch
|
||||
setopt localoptions nonomatch
|
||||
local expanded_path; : ${expanded_path:=${(Q)~arg}}
|
||||
[[ -z $expanded_path ]] && return 1
|
||||
[[ -e $expanded_path ]] && return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue