From 5542f9cf701740fa87694b2737f822d1eafe0874 Mon Sep 17 00:00:00 2001 From: Theo Weijmer Date: Thu, 1 Oct 2026 15:54:44 +0200 Subject: [PATCH] fix: only take list focus for a non-nil history selection Co-Authored-By: Claude Sonnet 5.5 --- Sources/Sst/HistoryView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Sst/HistoryView.swift b/Sources/Sst/HistoryView.swift index e2ec19a..452cef3 100644 --- a/Sources/Sst/HistoryView.swift +++ b/Sources/Sst/HistoryView.swift @@ -50,7 +50,7 @@ struct HistoryView: View { .focusable() .focused($listFocused) .focusEffectDisabled() - .onChange(of: list.selection) { _, _ in listFocused = true } + .onChange(of: list.selection) { _, new in if new != nil { listFocused = true } } .onDeleteCommand { if let id = list.selection { list.delete(id: id) } }