aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 061300c7829..2c6b02364b2 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -1457,7 +1457,9 @@ See also `multi-occur'."
1457 ;; so as to override faces copied from the buffer. 1457 ;; so as to override faces copied from the buffer.
1458 `(face ,match-face))) 1458 `(face ,match-face)))
1459 curstring) 1459 curstring)
1460 (setq start (match-end 0)))) 1460 ;; Avoid infloop (Bug#7593).
1461 (let ((end (match-end 0)))
1462 (setq start (if (= start end) (1+ start) end)))))
1461 ;; Generate the string to insert for this match 1463 ;; Generate the string to insert for this match
1462 (let* ((match-prefix 1464 (let* ((match-prefix
1463 ;; Using 7 digits aligns tabs properly. 1465 ;; Using 7 digits aligns tabs properly.