Skip to content
Myr

Fix inconsistent preview window width with --border

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

fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border

authored by Junegunn Choi · committed by Junegunn Choi · parent 70c461c · 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
1299 unmodified lines
1300 }1301 if previewOpts.hidden {1302 return1303 }1304 // Put scrollbar closer to the right border for consistent look1305 if t.borderShape.HasRight() {1306 width++1307 }1304 if previewOpts.position == posUp {1305 t.window = t.tui.NewWindow(1306 marginInt[0]+pheight, marginInt[3], width, height-pheight, false, noBorder)1307 createPreviewWindow(marginInt[0], marginInt[3], width, pheight)
2588 unmodified lines