Skip to content
Myr

Remove unnecessary flicking when changing the size of the preview window

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fzf --bind 'space:change-preview-window(60%|70%|80%|90%|hidden|)' --preview 'cat {}'

authored by Junegunn Choi · committed by Junegunn Choi · parent 9dee8ed · Browse files · 1 file+0 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−4 removed

  • other:+0 added−4 removed

1 file+0 added−4 removed

modified:src/terminal.go-4 removed
1492 unmodified lines
14931494 // Print border label1495 t.printLabel(t.border, t.borderLabel, t.borderLabelOpts, t.borderLabelLen, t.borderShape, false)1496 t.printLabel(t.pborder, t.previewLabel, t.previewLabelOpts, t.previewLabelLen, t.previewOpts.border, false)14971498 for i := 0; i < t.window.Height(); i++ {1499 t.window.MoveAndClear(i, 0)1500 }1497}14981499func (t *Terminal) printLabel(window tui.Window, render labelPrinter, opts labelOpts, length int, borderShape tui.BorderShape, redrawBorder bool) {1500 if window == nil {
2798 unmodified lines