From c74448f00ddcfc8327bcd4f9d37281015899000f Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 25 Sep 2023 15:34:15 +1000 Subject: 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 --- pkg/gui/types/context.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/gui/types/context.go') 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 { -- cgit v1.2.3