mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-06 15:20:40 +01:00
Quote the suggestion to support sh_split_word option
This commit is contained in:
@@ -129,7 +129,7 @@ zle -N autosuggest-clear _zsh_autosuggest_widget_clear
|
||||
zle -N autosuggest-execute _zsh_autosuggest_widget_execute
|
||||
|
||||
_zsh_autosuggest_show_suggestion() {
|
||||
local suggestion=$1
|
||||
local suggestion="$1"
|
||||
|
||||
_zsh_autosuggest_highlight_reset
|
||||
|
||||
|
||||
@@ -394,7 +394,7 @@ zle -N autosuggest-clear _zsh_autosuggest_widget_clear
|
||||
zle -N autosuggest-execute _zsh_autosuggest_widget_execute
|
||||
|
||||
_zsh_autosuggest_show_suggestion() {
|
||||
local suggestion=$1
|
||||
local suggestion="$1"
|
||||
|
||||
_zsh_autosuggest_highlight_reset
|
||||
|
||||
|
||||
Reference in New Issue
Block a user