Handle dashes at the beginning of commands
This commit is contained in:
@@ -55,7 +55,7 @@ _zsh_autosuggest_async_response() {
|
||||
local suggestion
|
||||
|
||||
zpty -rt $ZSH_AUTOSUGGEST_ASYNC_PTY_NAME suggestion '*'$'\0' 2>/dev/null
|
||||
zle autosuggest-suggest "${suggestion%%$'\0'##}"
|
||||
zle autosuggest-suggest -- "${suggestion%%$'\0'##}"
|
||||
}
|
||||
|
||||
_zsh_autosuggest_async_pty_create() {
|
||||
|
||||
Reference in New Issue
Block a user