From 07f259f653df042e599975261cac7be1bda17b5c Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Tue, 9 Oct 2018 23:25:31 -0500 Subject: [PATCH] main: Avoid null elision in _check_path This could be triggered if BUFFER='\'. --- highlighters/main/main-highlighter.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index 5e5740f..e5f879c 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -893,7 +893,7 @@ _zsh_highlight_main_highlighter_highlight_path_separators() # Else, return non-zero (and the contents of $REPLY is undefined). _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 REPLY=path