From 1b98af5b3334e1233ffb97bc9e5160a3fc5fef92 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Tue, 16 Feb 2016 07:57:44 -0700 Subject: [PATCH] Fix suggestions when `sh_split_words` option is enabled --- src/widgets.zsh | 2 +- zsh-autosuggestions.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets.zsh b/src/widgets.zsh index 40e954b..1537b8a 100644 --- a/src/widgets.zsh +++ b/src/widgets.zsh @@ -19,7 +19,7 @@ _zsh_autosuggest_modify() { # Get a new suggestion if the buffer is not empty after modification local suggestion if [ $#BUFFER -gt 0 ]; then - suggestion=$(_zsh_autosuggest_suggestion $BUFFER) + suggestion=$(_zsh_autosuggest_suggestion "$BUFFER") fi # Add the suggestion to the POSTDISPLAY diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index b4c7f67..5ae7433 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -219,7 +219,7 @@ _zsh_autosuggest_modify() { # Get a new suggestion if the buffer is not empty after modification local suggestion if [ $#BUFFER -gt 0 ]; then - suggestion=$(_zsh_autosuggest_suggestion $BUFFER) + suggestion=$(_zsh_autosuggest_suggestion "$BUFFER") fi # Add the suggestion to the POSTDISPLAY