mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-29 07:34:11 +08:00
Prevent parameter value being interpreted as kill flag
This commit is contained in:
parent
6259d46d36
commit
84c7cfaa89
|
@ -16,7 +16,7 @@ _zsh_autosuggest_async_request() {
|
|||
|
||||
# We won't know the pid unless the user has zsh/system module installed
|
||||
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
|
||||
|
||||
|
|
|
@ -771,7 +771,7 @@ _zsh_autosuggest_async_request() {
|
|||
|
||||
# We won't know the pid unless the user has zsh/system module installed
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user