summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-07-01 12:27:09 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2023-07-01 12:33:16 +0200
commit823bf6bdb1a525f60f4b64620c36f89df964ff07 (patch)
tree67f96040616fa4988576eaebea89f0cf857ffaba
parente339d0080d33a17bb1dee84160db7d89de8502cd (diff)
downloademacs-823bf6bdb1a525f60f4b64620c36f89df964ff07.tar.gz
emacs-823bf6bdb1a525f60f4b64620c36f89df964ff07.tar.bz2
emacs-823bf6bdb1a525f60f4b64620c36f89df964ff07.zip
* lisp/rect.el (rectangle--duplicate-right): Fix rectangle dup bug.
This is a necessary adjustment to changes to rect.el in Emacs 29.
-rw-r--r--lisp/rect.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/rect.el b/lisp/rect.el
index 5ff821abb3f..cdfd0764b99 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -940,7 +940,8 @@ Ignores `line-move-visual'."
(move-to-column endcol t)
(dotimes (_ n)
(insert (cadr lines)))))
- (region-beginning) (region-end))
+ (min (point) (mark))
+ (max (point) (mark)))
;; Recompute the rectangle state; no crutches should be needed now.
(let ((p (point))
(m (mark)))