Fix 118: Clear suggestion before original widget to fix completions

See PR #149
This commit is contained in:
Eric Freese 2016-04-25 14:42:09 -06:00
parent 964773aa75
commit e87bc74654
2 changed files with 6 additions and 0 deletions

View file

@ -15,6 +15,9 @@ _zsh_autosuggest_clear() {
_zsh_autosuggest_modify() {
local -i retval
# Clear suggestion while original widget runs
unset POSTDISPLAY
# Original widget modifies the buffer
_zsh_autosuggest_invoke_original_widget $@
retval=$?

View file

@ -233,6 +233,9 @@ _zsh_autosuggest_clear() {
_zsh_autosuggest_modify() {
local -i retval
# Clear suggestion while original widget runs
unset POSTDISPLAY
# Original widget modifies the buffer
_zsh_autosuggest_invoke_original_widget $@
retval=$?