main: Avoid null elision in _check_path

This could be triggered if BUFFER='\'.
This commit is contained in:
Matthew Martin 2018-10-09 23:25:31 -05:00
parent e27e53b1ef
commit 07f259f653

View file

@ -893,7 +893,7 @@ _zsh_highlight_main_highlighter_highlight_path_separators()
# Else, return non-zero (and the contents of $REPLY is undefined). # Else, return non-zero (and the contents of $REPLY is undefined).
_zsh_highlight_main_highlighter_check_path() _zsh_highlight_main_highlighter_check_path()
{ {
_zsh_highlight_main_highlighter_expand_path $1 _zsh_highlight_main_highlighter_expand_path "$1"
local expanded_path="$REPLY" tmp_path local expanded_path="$REPLY" tmp_path
REPLY=path REPLY=path