Do not setopt LOCAL_OPTIONS in set-titles-with-command

emulate -L zsh sets LOCAL_OPTIONS and LOCAL_TRAPS
This commit is contained in:
Sorin Ionescu 2012-09-25 12:30:19 -04:00
parent d48a162366
commit 6b0b6c2f9a

View File

@ -48,7 +48,7 @@ function set-titles-with-command {
fi fi
emulate -L zsh emulate -L zsh
setopt LOCAL_OPTIONS EXTENDED_GLOB setopt EXTENDED_GLOB
# Get the command name that is under job control. # Get the command name that is under job control.
if [[ "${1[(w)1]}" == (fg|%*)(\;|) ]]; then if [[ "${1[(w)1]}" == (fg|%*)(\;|) ]]; then