summaryrefslogtreecommitdiff
path: root/tables.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-18 08:42:05 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-18 08:42:05 +0300
commitc12311da999be4cafba5d41075ee8108567511db (patch)
tree883165e21e654ab072adfaef27b95324fe8f92c6 /tables.go
parent7d18a9d77eca3b286849ae0a134f9d7277249bef (diff)
Chore: linter complaints
Diffstat (limited to 'tables.go')
-rw-r--r--tables.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/tables.go b/tables.go
index 239811c..086bdf7 100644
--- a/tables.go
+++ b/tables.go
@@ -928,11 +928,12 @@ func makeFilePicker() *tview.Flex {
}
}
// Update status line based on search state
- if searching {
+ switch {
+ case searching:
statusView.SetText("Search: " + searchQuery + "_")
- } else if searchQuery != "" {
+ case searchQuery != "":
statusView.SetText("Current: " + dir + " (filter: " + searchQuery + ")")
- } else {
+ default:
statusView.SetText("Current: " + dir)
}
}