m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-14 22:33:47 -05:00

Restore previous behavior

This commit is contained in:
Junegunn Choi
2024-12-09 18:27:02 +09:00
parent 3fc0bd26a5
commit 3148b0f3e8
2 changed files with 10 additions and 0 deletions

View File

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