Fix inconsistent preview window width with --border

fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border
pull/3495/head
Junegunn Choi 7 months ago
parent 70c461c60b
commit a76c055b63
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -1301,10 +1301,6 @@ func (t *Terminal) resizeWindows(forcePreview bool) {
if previewOpts.hidden {
return
}
// Put scrollbar closer to the right border for consistent look
if t.borderShape.HasRight() {
width++
}
if previewOpts.position == posUp {
t.window = t.tui.NewWindow(
marginInt[0]+pheight, marginInt[3], width, height-pheight, false, noBorder)

Loading…
Cancel
Save