mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +00:00
*highlight: Remove $WIDGET reference
This commit is contained in:
parent
8d43634e15
commit
20da936ec1
1 changed files with 1 additions and 2 deletions
|
@ -690,8 +690,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
|
|||
[[ ! -d ${expanded_path:h} ]] && return 1
|
||||
|
||||
# If this word ends the buffer, check if it's the prefix of a valid path.
|
||||
if [[ ${buf[1]} != "-" && $pure_buf_len == $end_pos ]] &&
|
||||
[[ $WIDGET != zle-line-finish ]]; then
|
||||
if [[ ${buf[1]} != "-" && $pure_buf_len == $end_pos ]]; then
|
||||
local -a tmp
|
||||
tmp=( ${expanded_path}*(N) )
|
||||
(( $#tmp > 0 )) && REPLY=path_prefix && return 0
|
||||
|
|
Loading…
Reference in a new issue