mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +00:00
*highlight: Better code handling history expansion
Times like 181x ms seem to occur more often.
This commit is contained in:
parent
56aa7592b7
commit
a558600315
1 changed files with 2 additions and 2 deletions
|
@ -568,7 +568,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
(( highlight_glob )) && style=globbing || style=default;;
|
||||
*) if [[ $arg = $'\x7d' ]] && (( right_brace_is_recognised_everywhere )); then
|
||||
# was handled by the $'\x7d' case above
|
||||
elif [[ $arg[0,1] = $histchars[0,1] ]] && (( $#arg[0,2] == 2 )); then
|
||||
elif [[ $arg[1] = $histchars[1] && -n "${arg[2]}" ]]; then
|
||||
style=history-expansion
|
||||
elif (( arg_type == 3 )); then
|
||||
style=commandseparator
|
||||
|
|
Loading…
Reference in a new issue