mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-29 07:34:11 +08:00
Fix suggestions when sh_split_words
option is enabled
This commit is contained in:
parent
45ab49d1f2
commit
1b98af5b33
|
@ -19,7 +19,7 @@ _zsh_autosuggest_modify() {
|
||||||
# Get a new suggestion if the buffer is not empty after modification
|
# Get a new suggestion if the buffer is not empty after modification
|
||||||
local suggestion
|
local suggestion
|
||||||
if [ $#BUFFER -gt 0 ]; then
|
if [ $#BUFFER -gt 0 ]; then
|
||||||
suggestion=$(_zsh_autosuggest_suggestion $BUFFER)
|
suggestion=$(_zsh_autosuggest_suggestion "$BUFFER")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add the suggestion to the POSTDISPLAY
|
# Add the suggestion to the POSTDISPLAY
|
||||||
|
|
|
@ -219,7 +219,7 @@ _zsh_autosuggest_modify() {
|
||||||
# Get a new suggestion if the buffer is not empty after modification
|
# Get a new suggestion if the buffer is not empty after modification
|
||||||
local suggestion
|
local suggestion
|
||||||
if [ $#BUFFER -gt 0 ]; then
|
if [ $#BUFFER -gt 0 ]; then
|
||||||
suggestion=$(_zsh_autosuggest_suggestion $BUFFER)
|
suggestion=$(_zsh_autosuggest_suggestion "$BUFFER")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add the suggestion to the POSTDISPLAY
|
# Add the suggestion to the POSTDISPLAY
|
||||||
|
|
Loading…
Reference in New Issue
Block a user