mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 13:03:03 +00:00
Fix rectangular-region-mode when adding cursors over hidden areas of the buffer.
This commit is contained in:
parent
092b0a1017
commit
56d037319a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user