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:
parent
e5017c0431
commit
71dec3dc5e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user