aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index abb59a674e3..d92fb6809ef 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -810,9 +810,12 @@ a previously found match."
810 (keep-lines-read-args "How many matches for regexp")) 810 (keep-lines-read-args "How many matches for regexp"))
811 (save-excursion 811 (save-excursion
812 (if rstart 812 (if rstart
813 (progn 813 (if rend
814 (goto-char (min rstart rend)) 814 (progn
815 (setq rend (max rstart rend))) 815 (goto-char (min rstart rend))
816 (setq rend (max rstart rend)))
817 (goto-char rstart)
818 (setq rend (point-max)))
816 (if (and interactive transient-mark-mode mark-active) 819 (if (and interactive transient-mark-mode mark-active)
817 (setq rstart (region-beginning) 820 (setq rstart (region-beginning)
818 rend (region-end)) 821 rend (region-end))