summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/model.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-25 10:29:28 +0200
committerPaul Buetow <paul@buetow.org>2026-02-25 10:29:28 +0200
commit7dfd9784af4704be02b7d96c97a6454b5de749dc (patch)
treed4256d24ca0db03112a33ea11dfec16467592b1c /internal/tui/dashboard/model.go
parent39878a9cf79b74af493008f1006e66e8fd11457f (diff)
Clamp grouped-files cursor on stats refresh
Diffstat (limited to 'internal/tui/dashboard/model.go')
-rw-r--r--internal/tui/dashboard/model.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/tui/dashboard/model.go b/internal/tui/dashboard/model.go
index 966e93e..d3d8322 100644
--- a/internal/tui/dashboard/model.go
+++ b/internal/tui/dashboard/model.go
@@ -90,6 +90,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.latest = msg.Snap
m.syscallsOffset = clampOffset(m.syscallsOffset, m.maxSyscallsRows())
m.filesOffset = clampOffset(m.filesOffset, m.maxFilesRows())
+ m.filesDirOffset = clampOffset(m.filesDirOffset, m.maxFilesDirRows())
m.processesOffset = clampOffset(m.processesOffset, m.maxProcessesRows())
m.streamModel.Refresh()
return m, nil