mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Handle dashes at the beginning of commands
This commit is contained in:
parent
48a21bf79e
commit
c9a51e0c4c
4 changed files with 8 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue