From a44aa593219e233502fe6e47449e6b83af334f67 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Sun, 31 Jul 2016 20:09:26 -0600 Subject: [PATCH] Remove unnecessary reset of POSTDISPLAy --- src/widgets.zsh | 2 -- zsh-autosuggestions.zsh | 2 -- 2 files changed, 4 deletions(-) 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