From d6ef57d6a685fc85ff98a593b1821a0e543bf2ba Mon Sep 17 00:00:00 2001 From: raven Date: Thu, 12 Feb 2026 21:44:38 -0600 Subject: fix nil dereference --- client/ui.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/ui.go') diff --git a/client/ui.go b/client/ui.go index 8331799..fc8d9a6 100644 --- a/client/ui.go +++ b/client/ui.go @@ -60,7 +60,10 @@ func (a *application) onInput(ev tui.Event) { if ev.Key != 0 { switch cl := a.currentWindow.(type) { case channelLocation: - a.windowCache.Get(cl).(*channelWindow).fingersPresent() + switch w := a.windowCache.Get(cl).(type) { + case (*channelWindow): + w.fingersPresent() + } } } -- cgit v1.2.3