summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-01-23 18:41:06 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-01-23 18:41:06 +0900
commit32eb8c1be99940e34ed1a820fcb61512a8adf102 (patch)
tree1dd083abb0730c0806b53b8da940140e4dd49633 /src
parentc587017830ef2f9e4f5bfcad9879311f034535a8 (diff)
downloadfzf-32eb8c1be99940e34ed1a820fcb61512a8adf102.tar.gz
Fix resizing of a one-time preview window
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal.go b/src/terminal.go
index f39cc2ab..983729ed 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -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
}