Fix bug where screen is not properly cleared on toggle-preview

This commit is contained in:
Junegunn Choi 2017-01-22 17:43:27 +09:00
parent e5017c0431
commit 71dec3dc5e
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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 {