From dd34da4d67506ab8653616403b159bc34e7ba634 Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Tue, 16 Jun 2026 16:58:56 -0400 Subject: [PATCH] fix(tui): sync selectedID on click so refreshLive doesn't revert cursor handleClick set m.cursor but returned without calling syncSelectedID, causing the next refreshLive tick to snap the cursor back to the previously selected site. --- internal/tui/update.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/tui/update.go b/internal/tui/update.go index e476617..4d7dd20 100644 --- a/internal/tui/update.go +++ b/internal/tui/update.go @@ -727,6 +727,7 @@ func (m *Model) handleClick(msg tea.MouseMsg) (tea.Model, tea.Cmd) { for i := m.tableOffset; i < end; i++ { if m.zones.Get(fmt.Sprintf("%s-%d", prefix, i)).InBounds(msg) { m.cursor = i + m.syncSelectedID() return m, nil } }