summaryrefslogtreecommitdiffstats
path: root/src/terminal.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-10-20 16:03:41 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-10-20 16:03:41 +0900
commita76c055b6307bca58b27bbb12b1506834bb5ab01 (patch)
tree9fc7134c96c6730900d3ce6bb49cfbb6ed1458fc /src/terminal.go
parent70c461c60bb1e2165a378e8ba0451b511c29b5cb (diff)
Fix inconsistent preview window width with --border
fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border
Diffstat (limited to 'src/terminal.go')
-rw-r--r--src/terminal.go4
1 files changed, 0 insertions, 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)