emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/multiple-cursors 56d0373 075/434: Fix rectangular-region-m


From: ELPA Syncer
Subject: [nongnu] elpa/multiple-cursors 56d0373 075/434: Fix rectangular-region-mode when adding cursors over hidden areas of the buffer.
Date: Sat, 7 Aug 2021 09:19:58 -0400 (EDT)

branch: elpa/multiple-cursors
commit 56d037319a577224069c667c1b176b063cf6d8bd
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>

    Fix rectangular-region-mode when adding cursors over hidden areas of the 
buffer.
---
 rectangular-region-mode.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/rectangular-region-mode.el b/rectangular-region-mode.el
index 4477988..8226015 100644
--- a/rectangular-region-mode.el
+++ b/rectangular-region-mode.el
@@ -38,14 +38,12 @@
          (anchor-line (save-excursion (goto-char rrm/anchor) 
(line-number-at-pos)))
          (left-column (if (< point-column anchor-column) point-column 
anchor-column))
          (right-column (if (> point-column anchor-column) point-column 
anchor-column))
-         (num-mirrors (abs (- point-line anchor-line)))
-         (num-chars (- right-column left-column))
          (navigation-func (if (< point-line anchor-line) 'next-line 
'previous-line)))
     (move-to-column anchor-column t)
     (set-mark (point))
     (move-to-column point-column t)
     (mc/save-excursion
-     (dotimes (i num-mirrors)
+     (while (not (= anchor-line (line-number-at-pos)))
        (funcall navigation-func)
        (move-to-column right-column t)
        (move-to-column anchor-column t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]