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,10 +568,10 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
||||||
(( highlight_glob )) && style=globbing || style=default;;
|
(( highlight_glob )) && style=globbing || style=default;;
|
||||||
*) if [[ $arg = $'\x7d' ]] && (( right_brace_is_recognised_everywhere )); then
|
*) if [[ $arg = $'\x7d' ]] && (( right_brace_is_recognised_everywhere )); then
|
||||||
# was handled by the $'\x7d' case above
|
# 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
|
style=history-expansion
|
||||||
elif (( arg_type == 3 )); then
|
elif (( arg_type == 3 )); then
|
||||||
style=commandseparator
|
style=commandseparator
|
||||||
elif (( in_redirection == 2 )); then
|
elif (( in_redirection == 2 )); then
|
||||||
style=redirection
|
style=redirection
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue