This commit is contained in:
Lorenzo Bolla 2016-07-15 16:03:04 +00:00 committed by GitHub
commit 24b26fdf67
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,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 -a $#BUFFER -lt 20 ]; then
suggestion="$(_zsh_autosuggest_suggestion "$BUFFER")" suggestion="$(_zsh_autosuggest_suggestion "$BUFFER")"
fi fi

View File

@ -242,7 +242,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 -a $#BUFFER -lt 20 ]; then
suggestion="$(_zsh_autosuggest_suggestion "$BUFFER")" suggestion="$(_zsh_autosuggest_suggestion "$BUFFER")"
fi fi