From 0837691f1113b10e1f2b0352f827fa58ac2f0f48 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 8 Dec 2024 15:38:01 +0900 Subject: [PATCH] Fix failing test --- src/terminal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal.go b/src/terminal.go index 725bf8c30e4..a8a50d35b73 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1593,10 +1593,10 @@ func (t *Terminal) resizeWindows(forcePreview bool) { t.pborder = t.tui.NewWindow(y, x, w, h, true, previewBorder) pwidth -= borderColumns(previewOpts.border, bw) pheight -= borderLines(previewOpts.border) - if t.previewOpts.border.HasLeft() { + if previewOpts.border.HasLeft() { x += 1 + bw } - if t.previewOpts.border.HasTop() { + if previewOpts.border.HasTop() { y += 1 } if len(t.scrollbar) > 0 && !previewOpts.border.HasRight() {