From d9ff23463b53c19f24e3003ede37ed2945b5d210 Mon Sep 17 00:00:00 2001 From: Stanislav Seletskiy Date: Thu, 21 Apr 2016 03:08:59 +0600 Subject: [PATCH] do not show suggestion on completion --- src/widgets.zsh | 2 ++ zsh-autosuggestions.zsh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/widgets.zsh b/src/widgets.zsh index be7d2e63..ad6d43ac 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 17d1eaae..fb37940d 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 $@