diff --git a/src/widgets.zsh b/src/widgets.zsh index be7d2e6..ad6d43a 100644 --- a/src/widgets.zsh +++ b/src/widgets.zsh @@ -13,6 +13,8 @@ _zsh_autosuggest_clear() { # Modify the buffer and get a new suggestion _zsh_autosuggest_modify() { + POSTDISPLAY="" + # Original widget modifies the buffer _zsh_autosuggest_invoke_original_widget $@ diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 17d1eaa..fb37940 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -230,6 +230,8 @@ _zsh_autosuggest_clear() { # Modify the buffer and get a new suggestion _zsh_autosuggest_modify() { + POSTDISPLAY="" + # Original widget modifies the buffer _zsh_autosuggest_invoke_original_widget $@