Skip to content

Commit 2027b47

Browse files
committed
Fixed bezel notification showing at the wrong time when executing select previous occurrence.
1 parent 6c05378 commit 2027b47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/CodeEditSourceEditor/Find/ViewModel/FindPanelViewModel+Move.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ extension FindPanelViewModel {
6464
showWrapNotification(forwards: forwards, error: true, targetView: target.findPanelTargetView)
6565
return
6666
}
67-
68-
if isAtLimit && wrapAround {
67+
68+
// Show wrap notification when we're on the first occurrence and about to wrap to the last occurrence
69+
if currentFindMatchIndex == findMatches.count - 1 && !forwards && wrapAround {
6970
showWrapNotification(forwards: forwards, error: false, targetView: target.findPanelTargetView)
7071
}
7172
}

0 commit comments

Comments
 (0)