diff --git a/src/widgets.zsh b/src/widgets.zsh index b2f8a0e..9e0b568 100644 --- a/src/widgets.zsh +++ b/src/widgets.zsh @@ -33,8 +33,6 @@ _zsh_autosuggest_modify() { # Add the suggestion to the POSTDISPLAY if [ -n "$suggestion" ]; then POSTDISPLAY="${suggestion#$BUFFER}" - else - unset POSTDISPLAY fi return $retval diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 1055388..9394cf8 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -274,8 +274,6 @@ _zsh_autosuggest_modify() { # Add the suggestion to the POSTDISPLAY if [ -n "$suggestion" ]; then POSTDISPLAY="${suggestion#$BUFFER}" - else - unset POSTDISPLAY fi return $retval