changeset 64821:ff78c70a52e2

(isearch-repeat): When changing direction, mark search successful.
author Richard M. Stallman <rms@gnu.org>
date Tue, 09 Aug 2005 11:27:18 +0000
parents 3b8ee785ce35
children 518cb89f1f95
files lisp/isearch.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/isearch.el	Tue Aug 09 11:26:13 2005 +0000
+++ b/lisp/isearch.el	Tue Aug 09 11:27:18 2005 +0000
@@ -1147,7 +1147,8 @@
 		  (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.