Skip to content

Commit 266b2b1

Browse files
committed
ensure regexp error messages are displayed in findCallback
1 parent 4510291 commit 266b2b1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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)