summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-12-09 18:27:02 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-12-12 13:53:08 +0900
commit3148b0f3e88f8a116491135dc10a7ce6d96899bf (patch)
treec83e3286e5fe2a42adeca7713ab02cf2de9a5367 /src
parent3fc0bd26a59c78beba62b610061db59b552e2e74 (diff)
downloadfzf-3148b0f3e88f8a116491135dc10a7ce6d96899bf.tar.gz
Restore previous behavior
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 9de92e3c..adca67a3 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -1695,6 +1695,9 @@ func (t *Terminal) resizeWindows(forcePreview bool) {
marginInt[0], marginInt[3], width-pwidth, height, false, noBorder)
// NOTE: fzf --preview 'cat {}' --preview-window border-left --border
x := marginInt[3] + width - pwidth
+ if !previewOpts.border.HasRight() && t.borderShape.HasRight() {
+ pwidth++
+ }
createPreviewWindow(marginInt[0], x, pwidth, height)
}
}