summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-05-05 11:10:54 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-05-05 11:10:54 +0900
commitc37cd11ca559ba617c13c80b8ba9294577e638eb (patch)
treee59b980e7197d8fe7a8aaf26b8085260488aa162
parent9dee8edc0c5c4e0af0880694670e80340ece1386 (diff)
Remove unnecessary flicking when changing the size of the preview window
fzf --bind 'space:change-preview-window(60%|70%|80%|90%|hidden|)' --preview 'cat {}'
-rw-r--r--src/terminal.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/terminal.go b/src/terminal.go
index d01a7eaa..558bcc67 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -1494,10 +1494,6 @@ func (t *Terminal) resizeWindows(forcePreview bool) {
// Print border label
t.printLabel(t.border, t.borderLabel, t.borderLabelOpts, t.borderLabelLen, t.borderShape, false)
t.printLabel(t.pborder, t.previewLabel, t.previewLabelOpts, t.previewLabelLen, t.previewOpts.border, false)
-
- for i := 0; i < t.window.Height(); i++ {
- t.window.MoveAndClear(i, 0)
- }
}
func (t *Terminal) printLabel(window tui.Window, render labelPrinter, opts labelOpts, length int, borderShape tui.BorderShape, redrawBorder bool) {