improve note view messages

This commit is contained in:
2026-01-04 05:32:50 +00:00
parent a71c0b0d9c
commit c0a0897c15
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ func (t *FsTree) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
t.viewStart, t.viewEnd = t.getViewportBounds()
if t.oldSelected != t.selectedNode {
if t.oldSelected != t.selectedNode && t.selectedNode.nodeType == FileNode {
t.oldSelected = t.selectedNode
return t, func() tea.Msg {
return nodeSelected{path: t.selectedNode.path}