From fddf05f911277ddbc5b060be2213342a629e0ff2 Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Tue, 25 Oct 2016 17:32:10 +0200 Subject: [PATCH] *highlight: One more betterment of history expansion related code --- hsmw-highlight | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsmw-highlight b/hsmw-highlight index 10cc413..ff3cbe6 100644 --- a/hsmw-highlight +++ b/hsmw-highlight @@ -467,7 +467,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=( [[ $arg[-1] == '(' ]] && in_array_assignment=1 || (( next_word = next_word | BIT_start )) elif [[ $arg[1] = $histchars[1] && -n "${arg[2]}" ]]; then style=history-expansion - elif [[ $arg[0,1] == $histchars[2,2] ]]; then + elif [[ $arg[1] == $histchars[2] ]]; then style=history-expansion elif (( arg_type == 3 )); then if (( this_word & BIT_regular )); then