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
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

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
}