From 71dec3dc5efde5296fdc5a099573d23d008f3826 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 22 Jan 2017 17:43:27 +0900 Subject: [PATCH] Fix bug where screen is not properly cleared on toggle-preview --- src/terminal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/terminal.go b/src/terminal.go index 7fcef60..0786b95 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1360,6 +1360,7 @@ func (t *Terminal) Loop() { case actTogglePreview: if t.hasPreviewWindow() { t.previewer.enabled = !t.previewer.enabled + t.tui.Clear() t.resizeWindows() cnt := t.merger.Length() if t.previewer.enabled && cnt > 0 && cnt > t.cy {