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

Fix resizing of a one-time preview window

This commit is contained in:
Junegunn Choi
2025-01-23 18:41:06 +09:00
parent c587017830
commit 32eb8c1be9

View File

@@ -5416,7 +5416,7 @@ func (t *Terminal) Loop() error {
}
}
if pborderDragging >= 0 {
if pborderDragging >= 0 && t.hasPreviewWindow() {
var newSize int
var prevSize int
switch t.activePreviewOpts.position {
@@ -5447,7 +5447,7 @@ func (t *Terminal) Loop() error {
}
t.activePreviewOpts.size = sizeSpec{float64(newSize), false}
updatePreviewWindow(false)
updatePreviewWindow(true)
req(reqPreviewRefresh)
break
}