Skip to content

Commit 560bfcf

Browse files
committed
ensure regexp error messages are displayed in findCallback
1 parent a577fc9 commit 560bfcf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/action/actions.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,8 +1144,7 @@ func (h *BufPane) find(useRegex bool) bool {
11441144
match, found, err := h.Buf.FindNext(resp, h.Buf.Start(), h.Buf.End(), h.searchOrig, true, useRegex)
11451145
if err != nil {
11461146
InfoBar.Error(err)
1147-
}
1148-
if found {
1147+
} else if found {
11491148
h.Cursor.SetSelectionStart(match[0])
11501149
h.Cursor.SetSelectionEnd(match[1])
11511150
h.Cursor.OrigSelection[0] = h.Cursor.CurSelection[0]

0 commit comments

Comments
 (0)