*-highlight: Proper states for precmd (command,exec) option handling

This commit is contained in:
Sebastian Gniazdowski 2018-06-01 18:56:53 +02:00
parent 647b1985bb
commit e5c5534199

View file

@ -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