Skip to content

Commit

Permalink
Visual mc: `evil-insert-state' for all cursors (#114)
Browse files Browse the repository at this point in the history
`evil-mc-make-cursor-in-visual-selection-beg' and
`evil-mc-make-cursor-in-visual-selection-end' now enter insert state for all
cursors.
  • Loading branch information
nbfalcon authored Feb 6, 2021
1 parent 00feb3d commit f04fb17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evil-mc-cursor-make.el
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ Acts like the I key in evil-visual-state."
(min (evil-column evil-visual-beginning)
(evil-column evil-visual-end)))
(evil-mc-make-cursor-in-visual-selection t))
(evil-insert-state))
(evil-mc-execute-for-all-cursors #'evil-insert-state))
(message "%s: Only works with a selection" this-command)))

(evil-define-command evil-mc-make-cursor-in-visual-selection-end ()
Expand All @@ -516,7 +516,7 @@ Acts like the A key in evil-visual-state."
(max (evil-column evil-visual-beginning)
(evil-column evil-visual-end)))
(evil-mc-make-cursor-in-visual-selection nil))
(evil-insert-state))
(evil-mc-execute-for-all-cursors #'evil-insert-state))
(message "%s: Only works with a selection" this-command)))

(evil-define-command evil-mc-make-cursor-move-next-line (count)
Expand Down

0 comments on commit f04fb17

Please sign in to comment.