Skip to content

Commit

Permalink
Fix sorin-ionescu#127 by adding quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfreese committed Feb 25, 2016
1 parent 0242c7e commit cc92199
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/suggestion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Get a suggestion from history that matches a given prefix
_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*
local history_matches
Expand Down
2 changes: 1 addition & 1 deletion zsh-autosuggestions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ zle -N autosuggest-clear _zsh_autosuggest_widget_clear

# Get a suggestion from history that matches a given prefix
_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*
local history_matches
Expand Down

0 comments on commit cc92199

Please sign in to comment.