From 20da936ec19a80bf76d332e44d2a734ef64760bf Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Tue, 11 Oct 2016 08:36:36 +0200 Subject: [PATCH] *highlight: Remove $WIDGET reference --- hsmw-highlight | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hsmw-highlight b/hsmw-highlight index 56fcb08..2f2f7ab 100644 --- a/hsmw-highlight +++ b/hsmw-highlight @@ -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