mirror of
https://github.com/zdharma-continuum/fast-syntax-highlighting.git
synced 2026-09-10 07:16:18 -04:00
*-highlight: Proper states for precmd (command,exec) option handling
This commit is contained in:
parent
647b1985bb
commit
e5c5534199
|
|
@ -417,9 +417,8 @@ typeset -ga ZLAST_COMMANDS
|
|||
(( next_word = next_word | 4 ))
|
||||
(( next_word = next_word | 1 ))
|
||||
elif (( this_word & 64 )); then
|
||||
[[ "$__arg" = -[pvV]## && "$cur_cmd" = "command" ]] && (( this_word = (this_word & ~1) | 2, next_word = next_word | 64 ))
|
||||
[[ "$__arg" = -[cla]## && "$cur_cmd" = "exec" ]] && (( this_word = (this_word & ~1) | 2, next_word = next_word | 64 ))
|
||||
(( next_word = (next_word | 1) & ~2 ))
|
||||
[[ "$__arg" = -[pvV]## && "$cur_cmd" = "command" ]] && (( this_word = (this_word & ~1) | 2, next_word = (next_word | 65) & ~2 ))
|
||||
[[ "$__arg" = -[cla]## && "$cur_cmd" = "exec" ]] && (( this_word = (this_word & ~1) | 2, next_word = (next_word | 65) & ~2 ))
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue