mirror of
https://github.com/vale981/boon
synced 2025-03-04 17:11:40 -05:00
don't lay cursors when repeating a replace
This commit is contained in:
parent
4b76f0a86c
commit
74cb03a0ea
1 changed files with 9 additions and 4 deletions
|
@ -291,10 +291,15 @@ If there is more than one, use mc/create-fake-cursor-at-point."
|
|||
;; use markers so that deleting things does not mess the positions
|
||||
(boon-take-region regs)
|
||||
(deactivate-mark t)
|
||||
(if changes ; if we have a change to apply then we do not want to lay new cursors, just apply the changes.
|
||||
(save-excursion
|
||||
(dolist (reg markers)
|
||||
(goto-char (boon-reg-point reg))
|
||||
(boon/replay-changes changes)))
|
||||
(boon-lay-multiple-cursors (lambda (reg)
|
||||
(goto-char (boon-reg-point reg)))
|
||||
markers)
|
||||
(boon-insert changes)))
|
||||
(boon-insert changes))))
|
||||
|
||||
(defun boon-replace-by-character (replacement)
|
||||
"Replace the character at point by the REPLACEMENT character.
|
||||
|
|
Loading…
Add table
Reference in a new issue