Fix #127 by adding quotes

This commit is contained in:
Eric Freese 2016-02-24 18:35:17 -07:00
parent 0242c7eff1
commit cc921994e6
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
# Get a suggestion from history that matches a given prefix # Get a suggestion from history that matches a given prefix
_zsh_autosuggest_suggestion() { _zsh_autosuggest_suggestion() {
local prefix=$(_zsh_autosuggest_escape_command_prefix "$1") local prefix="$(_zsh_autosuggest_escape_command_prefix "$1")"
# Get all history items (reversed) that match pattern $prefix* # Get all history items (reversed) that match pattern $prefix*
local history_matches local history_matches

View file

@ -291,7 +291,7 @@ zle -N autosuggest-clear _zsh_autosuggest_widget_clear
# Get a suggestion from history that matches a given prefix # Get a suggestion from history that matches a given prefix
_zsh_autosuggest_suggestion() { _zsh_autosuggest_suggestion() {
local prefix=$(_zsh_autosuggest_escape_command_prefix "$1") local prefix="$(_zsh_autosuggest_escape_command_prefix "$1")"
# Get all history items (reversed) that match pattern $prefix* # Get all history items (reversed) that match pattern $prefix*
local history_matches local history_matches