mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2026-12-02 13:23:09 +01:00
Prevent parameter value being interpreted as kill flag
This commit is contained in:
1 parent
6259d46d36
commit
84c7cfaa89
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user