search: suppress the occurrence at the cursor only when replacing
When we're just searching, we do want to report the occurrence at the cursor (after coming full circle) as a match, so that we can mention that this is the only occurrence. When replacing, we do not want to replace this match twice. This fixes https://savannah.gnu.org/bugs/?52888.
Showing
+2 -1
Please register or sign in to comment