From a76c055b6307bca58b27bbb12b1506834bb5ab01 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 20 Oct 2023 16:03:41 +0900 Subject: [PATCH] Fix inconsistent preview window width with --border fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border --- src/terminal.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/terminal.go b/src/terminal.go index 9d989d9c..f7ce5b52 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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)