Skip to content

Commit

Permalink
fix(expand and accept): check for autosuggest
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Dec 23, 2022
1 parent e8a8ae7 commit 53a8b06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zsh-abbr.zsh
Expand Up @@ -1335,7 +1335,10 @@ abbr-expand-and-accept() {
zle abbr-expand
fi

zle autosuggest-clear
if (( ${+widgets[autosuggest-clear]} )); then
zle autosuggest-clear
fi

zle accept-line
}

Expand Down

0 comments on commit 53a8b06

Please sign in to comment.