*highlight: Remove $BUFFER reference

This commit is contained in:
Sebastian Gniazdowski 2016-10-11 08:35:00 +02:00
parent bb36f8068a
commit 8d43634e15

View file

@ -690,7 +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 [[ ${BUFFER[1]} != "-" && $pure_buf_len == $end_pos ]] &&
if [[ ${buf[1]} != "-" && $pure_buf_len == $end_pos ]] &&
[[ $WIDGET != zle-line-finish ]]; then
local -a tmp
tmp=( ${expanded_path}*(N) )