mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 21:03:05 +00:00
Small optimization
If we remove the ceiling entirely, we won't even enter the form that checks values, etc.
This commit is contained in:
parent
2e904a0be2
commit
cd967e720f
@ -462,8 +462,7 @@ The entries are returned in the order they are found in the buffer."
|
||||
(defun mc--maybe-set-killed-rectangle ()
|
||||
"Add the latest kill-ring entry for each cursor to killed-rectangle.
|
||||
So you can paste it in later with `yank-rectangle'."
|
||||
(let ((entries (let ((mc--active-cursor-count -1))
|
||||
(mc--kill-ring-entries))))
|
||||
(let ((entries (let (mc/max-cursors) (mc--kill-ring-entries))))
|
||||
(unless (mc--all-equal entries)
|
||||
(setq killed-rectangle entries))))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user