diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-05 11:10:54 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-05 11:10:54 +0900 |
commit | c37cd11ca559ba617c13c80b8ba9294577e638eb (patch) | |
tree | e59b980e7197d8fe7a8aaf26b8085260488aa162 /src | |
parent | 9dee8edc0c5c4e0af0880694670e80340ece1386 (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 {}'
Diffstat (limited to 'src')
-rw-r--r-- | src/terminal.go | 4 |
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) { |