]> code.delx.au - gnu-emacs/commitdiff
(isearch-repeat): When changing direction, mark search successful.
authorRichard M. Stallman <rms@gnu.org>
Tue, 9 Aug 2005 11:27:18 +0000 (11:27 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 9 Aug 2005 11:27:18 +0000 (11:27 +0000)
lisp/isearch.el

index 56a73a689a57f0233c98cc7e11d43518baf12887..f3fc51778e9baa2982eaf526333e11e597d9cfee 100644 (file)
@@ -1147,7 +1147,8 @@ Use `isearch-exit' to quit without signaling."
                  (funcall isearch-wrap-function)
                (goto-char (if isearch-forward (point-min) (point-max)))))))
     ;; C-s in reverse or C-r in forward, change direction.
-    (setq isearch-forward (not isearch-forward)))
+    (setq isearch-forward (not isearch-forward)
+         isearch-success t))
 
   (setq isearch-barrier (point)) ; For subsequent \| if regexp.