mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 10:53:07 +00:00
parse.zsh uses INTERACTIVE_COMMENTS, to-parse.zsh doesn't contain $()
This commit is contained in:
parent
136d10e0bb
commit
62c5fe444e
2 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,8 @@ fi
|
|||
zmodload zsh/zprof
|
||||
autoload is-at-least
|
||||
|
||||
setopt interactive_comments
|
||||
|
||||
# Own input?
|
||||
if [[ "$1" = "-o" || "$1" = "-oo" ]]; then
|
||||
typeset -a input
|
||||
|
|
|
@ -96,7 +96,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
|
|||
# zsh 5.2 and older have a bug whereby running 'type -w ./sudo' implicitly
|
||||
# runs 'hash ./sudo=/usr/local/bin/./sudo' (assuming /usr/local/bin/sudo
|
||||
# exists and is in $PATH). Avoid triggering the bug, at the expense of
|
||||
# falling through to the $() below, incurring a fork. (Issue #354.)
|
||||
# falling through to the $(x) below, incurring a fork. (Issue #354.)
|
||||
#
|
||||
# The second disjunct mimics the isrelative() C call from the zsh bug.
|
||||
elif { [[ $1 != */* ]] || is-at-least 5.3 } &&
|
||||
|
|
Loading…
Reference in a new issue