From 04f9c8884fbb24dfaf79db56700d08946d39c126 Mon Sep 17 00:00:00 2001 From: sonnym Date: Sat, 7 Dec 2013 05:11:19 -0500 Subject: [PATCH] highlight ^old^new pattern by extending the already in place mechanism of checking for the first histchar to check for the second as well --- 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 72b48f0..5b038b4 100755 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -128,7 +128,7 @@ _zsh_highlight_main_highlighter() new_expression=true elif _zsh_highlight_main_highlighter_check_path; then style=$ZSH_HIGHLIGHT_STYLES[path] - elif [[ $arg[0,1] = $histchars[0,1] ]]; then + elif [[ $arg[0,1] == $histchars[0,1] || $arg[0,1] == $histchars[2,2] ]]; then style=$ZSH_HIGHLIGHT_STYLES[history-expansion] else style=$ZSH_HIGHLIGHT_STYLES[unknown-token]