Handle dashes at the beginning of commands

This commit is contained in:
Eric Freese
2017-02-18 16:51:53 -07:00
parent 48a21bf79e
commit c9a51e0c4c
4 changed files with 8 additions and 3 deletions

View File

@@ -550,7 +550,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() {