[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 823bf6bdb1a 2/2: * lisp/rect.el (rectangle--duplicate-right): F
|
From: |
Mattias Engdegård |
|
Subject: |
emacs-29 823bf6bdb1a 2/2: * lisp/rect.el (rectangle--duplicate-right): Fix rectangle dup bug. |
|
Date: |
Sat, 1 Jul 2023 06:33:27 -0400 (EDT) |
branch: emacs-29
commit 823bf6bdb1a525f60f4b64620c36f89df964ff07
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
* lisp/rect.el (rectangle--duplicate-right): Fix rectangle dup bug.
This is a necessary adjustment to changes to rect.el in Emacs 29.
---
lisp/rect.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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)))