mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 11:23:16 +00:00
*higlight,hsmw: No need for is-at-least – test for ZSH_ARGZERO instead
This commit is contained in:
parent
3d2ac47621
commit
68348d09ee
2 changed files with 1 additions and 4 deletions
|
@ -27,8 +27,6 @@ setopt typesetsilent extendedglob noshortloops localtraps promptsubst
|
||||||
zmodload zsh/terminfo 2>/dev/null
|
zmodload zsh/terminfo 2>/dev/null
|
||||||
zmodload zsh/termcap 2>/dev/null
|
zmodload zsh/termcap 2>/dev/null
|
||||||
|
|
||||||
autoload is-at-least
|
|
||||||
|
|
||||||
typeset -g __hsmw_hcw_index
|
typeset -g __hsmw_hcw_index
|
||||||
typeset -g __hsmw_hcw_widget_name __hsmw_hcw_restart __hsmw_hcw_call_count
|
typeset -g __hsmw_hcw_widget_name __hsmw_hcw_restart __hsmw_hcw_call_count
|
||||||
typeset -g __hsmw_page_size __hsmw_hl_color __hsmw_synhl __hsmw_active
|
typeset -g __hsmw_page_size __hsmw_hl_color __hsmw_synhl __hsmw_active
|
||||||
|
|
|
@ -139,8 +139,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
||||||
# falling through to the $() below, incurring a fork. (Issue #354.)
|
# falling through to the $() below, incurring a fork. (Issue #354.)
|
||||||
#
|
#
|
||||||
# The second disjunct mimics the isrelative() C call from the zsh bug.
|
# The second disjunct mimics the isrelative() C call from the zsh bug.
|
||||||
elif { [[ $1 != */* ]] || is-at-least 5.3 } &&
|
elif [[ $1 != */* || "${+ZSH_ARGZERO}" = "1" ]] && ! builtin type -w -- $1 >/dev/null 2>&1; then
|
||||||
! builtin type -w -- $1 >/dev/null 2>&1; then
|
|
||||||
REPLY=none
|
REPLY=none
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue