Merge pull request #5279 from daanturo/evil-multiedit-compat-for-multiple-cursors

Improve multiple-cursors compatibility with evil-multiedit
This commit is contained in:
Henrik Lissner 2021-07-23 16:15:14 -04:00 committed by GitHub
commit ed21643fec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,10 @@
(when +mc--compat-evil-prev-state (when +mc--compat-evil-prev-state
(unwind-protect (unwind-protect
(cl-case +mc--compat-evil-prev-state (cl-case +mc--compat-evil-prev-state
((normal visual) (evil-force-normal-state)) ;; For `evil-multiedit', marked occurrences aren't saved after
;; exiting mc, so we should return to normal state anyway
((normal visual multiedit multiedit-insert)
(evil-force-normal-state))
(t (message "Don't know how to handle previous state: %S" (t (message "Don't know how to handle previous state: %S"
+mc--compat-evil-prev-state))) +mc--compat-evil-prev-state)))
(setq +mc--compat-evil-prev-state nil) (setq +mc--compat-evil-prev-state nil)