summaryrefslogtreecommitdiffstats
path: root/pkg/gui/types/context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-09-25 15:34:15 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-09-25 16:37:59 +1000
commitc74448f00ddcfc8327bcd4f9d37281015899000f (patch)
treea5c56172c3760d74dee6b51ab87db9630ba1e28b /pkg/gui/types/context.go
parent41ab7c44a06c128c993fc69a6a4b421b5e2e9405 (diff)
Don't select current search result when showing search status
Previously there was no way to render a view's search status without also moving the cursor to the current search match. This caused issues where we wanted to display the status after leaving the view and coming back, or when beginning a new search from within the view. This commit separates the two use cases so we only move the cursor when we're actually selecting the next search match
Diffstat (limited to 'pkg/gui/types/context.go')
-rw-r--r--pkg/gui/types/context.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go
index fbc38df82..df16cf2bd 100644
--- a/pkg/gui/types/context.go
+++ b/pkg/gui/types/context.go
@@ -115,6 +115,7 @@ type ISearchableContext interface {
ClearSearchString()
IsSearching() bool
IsSearchableContext()
+ RenderSearchStatus(int, int)
}
type DiffableContext interface {