mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Fix 118: Clear suggestion before original widget to fix completions
See PR #149
This commit is contained in:
parent
964773aa75
commit
e87bc74654
2 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,9 @@ _zsh_autosuggest_clear() {
|
||||||
_zsh_autosuggest_modify() {
|
_zsh_autosuggest_modify() {
|
||||||
local -i retval
|
local -i retval
|
||||||
|
|
||||||
|
# Clear suggestion while original widget runs
|
||||||
|
unset POSTDISPLAY
|
||||||
|
|
||||||
# Original widget modifies the buffer
|
# Original widget modifies the buffer
|
||||||
_zsh_autosuggest_invoke_original_widget $@
|
_zsh_autosuggest_invoke_original_widget $@
|
||||||
retval=$?
|
retval=$?
|
||||||
|
|
|
@ -233,6 +233,9 @@ _zsh_autosuggest_clear() {
|
||||||
_zsh_autosuggest_modify() {
|
_zsh_autosuggest_modify() {
|
||||||
local -i retval
|
local -i retval
|
||||||
|
|
||||||
|
# Clear suggestion while original widget runs
|
||||||
|
unset POSTDISPLAY
|
||||||
|
|
||||||
# Original widget modifies the buffer
|
# Original widget modifies the buffer
|
||||||
_zsh_autosuggest_invoke_original_widget $@
|
_zsh_autosuggest_invoke_original_widget $@
|
||||||
retval=$?
|
retval=$?
|
||||||
|
|
Loading…
Reference in a new issue