mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Prevent parameter value being interpreted as kill flag
This commit is contained in:
parent
6259d46d36
commit
84c7cfaa89
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ _zsh_autosuggest_async_request() {
|
||||||
|
|
||||||
# We won't know the pid unless the user has zsh/system module installed
|
# We won't know the pid unless the user has zsh/system module installed
|
||||||
if (( _ZSH_AUTOSUGGEST_CHILD_PID )); then
|
if (( _ZSH_AUTOSUGGEST_CHILD_PID )); then
|
||||||
kill -TERM $_ZSH_AUTOSUGGEST_CHILD_PID 2>/dev/null
|
kill -TERM -- $_ZSH_AUTOSUGGEST_CHILD_PID 2>/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -771,7 +771,7 @@ _zsh_autosuggest_async_request() {
|
||||||
|
|
||||||
# We won't know the pid unless the user has zsh/system module installed
|
# We won't know the pid unless the user has zsh/system module installed
|
||||||
if (( _ZSH_AUTOSUGGEST_CHILD_PID )); then
|
if (( _ZSH_AUTOSUGGEST_CHILD_PID )); then
|
||||||
kill -TERM $_ZSH_AUTOSUGGEST_CHILD_PID 2>/dev/null
|
kill -TERM -- $_ZSH_AUTOSUGGEST_CHILD_PID 2>/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue