2
0
mirror of https://github.com/junegunn/fzf synced 2024-11-10 13:10:44 +00:00

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: case actTogglePreview:
if t.hasPreviewWindow() { if t.hasPreviewWindow() {
t.previewer.enabled = !t.previewer.enabled t.previewer.enabled = !t.previewer.enabled
t.tui.Clear()
t.resizeWindows() t.resizeWindows()
cnt := t.merger.Length() cnt := t.merger.Length()
if t.previewer.enabled && cnt > 0 && cnt > t.cy { if t.previewer.enabled && cnt > 0 && cnt > t.cy {