summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-02-12 21:44:38 -0600
committerraven <citrons@mondecitronne.com>2026-02-12 21:44:38 -0600
commitd6ef57d6a685fc85ff98a593b1821a0e543bf2ba (patch)
tree86f4292b19576c8a51a07c4cdbd9f7d25e15a441 /client
parent4812f7c31647c269095b61580db206a7faa4cfc2 (diff)
fix nil dereference
Diffstat (limited to 'client')
-rw-r--r--client/ui.go5
1 files changed, 4 insertions, 1 deletions
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()
+ }
}
}