mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 05:03:03 +00:00
Fix cycle-cursor behavior.
mc/cycle-forward had been skipping a cursor on (point-max). mc/cycle-backward had been skipping a cursor on (point-min).
This commit is contained in:
parent
238fb970f9
commit
38e590ce06
@ -32,7 +32,7 @@
|
||||
|
||||
(defun mc/next-fake-cursor-after-point ()
|
||||
(let ((pos (point))
|
||||
(next-pos (point-max))
|
||||
(next-pos (1+ (point-max)))
|
||||
next)
|
||||
(mc/for-each-fake-cursor
|
||||
(let ((cursor-pos (overlay-get cursor 'point)))
|
||||
@ -44,7 +44,7 @@
|
||||
|
||||
(defun mc/prev-fake-cursor-before-point ()
|
||||
(let ((pos (point))
|
||||
(prev-pos (point-min))
|
||||
(prev-pos (1- (point-min)))
|
||||
prev)
|
||||
(mc/for-each-fake-cursor
|
||||
(let ((cursor-pos (overlay-get cursor 'point)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user