mirror of
https://github.com/zsh-users/zsh-autosuggestions
synced 2025-02-16 17:46:50 +00:00
Fix 118: Clear suggestion before original widget to fix completions
See PR #149
This commit is contained in:
parent
964773aa75
commit
e87bc74654
@ -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=$?
|
||||
|
@ -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=$?
|
||||
|
Loading…
Reference in New Issue
Block a user