Fix inconsistent preview window width with --border

fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border
This commit is contained in:
Junegunn Choi 2023-10-20 16:03:41 +09:00
parent 70c461c60b
commit a76c055b63
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
1 changed files with 0 additions and 4 deletions

View File

@ -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)