From fd5206b4a13a842143b8faaa7c28cf3bcf4e38c3 Mon Sep 17 00:00:00 2001 From: Cheney Ni <56236030+cheneyni-451@users.noreply.github.com> Date: Sun, 22 Feb 2026 02:52:07 -0500 Subject: [PATCH] issues/330: (fix) reset img preview height on quit --- app/update.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/update.go b/app/update.go index 1197c85..d9ce964 100644 --- a/app/update.go +++ b/app/update.go @@ -318,6 +318,9 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { cmds = append(cmds, cmd) m.preview.GotoTop() m.setPreviewKeys(false) + if i.filePath != "null" && config.ClipseConfig.ImageDisplay.Type != "basic" { + m.preview.Height = m.originalHeight + } return m, tea.Batch(cmds...) case m.list.IsFiltered():