From: Mattias EngdegÄrd Date: Sat, 1 Jul 2023 10:27:09 +0000 (+0200) Subject: * lisp/rect.el (rectangle--duplicate-right): Fix rectangle dup bug. X-Git-Tag: emacs-29.1-rc1~79 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=823bf6bdb1a525f60f4b64620c36f89df964ff07;p=emacs.git * lisp/rect.el (rectangle--duplicate-right): Fix rectangle dup bug. This is a necessary adjustment to changes to rect.el in Emacs 29. --- 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)))