From 560bfcf749ae4812e8b9f3a27a00cf6737af7258 Mon Sep 17 00:00:00 2001 From: matthias314 Date: Tue, 18 Nov 2025 10:48:46 -0500 Subject: [PATCH] ensure regexp error messages are displayed in `findCallback` --- internal/action/actions.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/action/actions.go b/internal/action/actions.go index b0867da9..bcdc1212 100644 --- a/internal/action/actions.go +++ b/internal/action/actions.go @@ -1144,8 +1144,7 @@ func (h *BufPane) find(useRegex bool) bool { match, found, err := h.Buf.FindNext(resp, h.Buf.Start(), h.Buf.End(), h.searchOrig, true, useRegex) if err != nil { InfoBar.Error(err) - } - if found { + } else if found { h.Cursor.SetSelectionStart(match[0]) h.Cursor.SetSelectionEnd(match[1]) h.Cursor.OrigSelection[0] = h.Cursor.CurSelection[0]