diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-12-09 18:27:02 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-12-12 13:53:08 +0900 |
| commit | 3148b0f3e88f8a116491135dc10a7ce6d96899bf (patch) | |
| tree | c83e3286e5fe2a42adeca7713ab02cf2de9a5367 /src | |
| parent | 3fc0bd26a59c78beba62b610061db59b552e2e74 (diff) | |
| download | fzf-3148b0f3e88f8a116491135dc10a7ce6d96899bf.tar.gz | |
Restore previous behavior
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 3 |
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) } } |
