Run hook when mc is disabled

This commit is contained in:
Johannes Lippmann
2021-11-11 13:57:23 +01:00
committed by Magnar Sveen
parent 588daf8c52
commit 4975afedb3
3 changed files with 25 additions and 8 deletions

View File

@@ -106,7 +106,9 @@
(progn
(mc/mark-next-lines 1)
(mc/reverse-regions)
(multiple-cursors-mode 0))
(multiple-cursors-mode 0)
(multiple-cursors-mode-disabled-hook)
)
(unless (use-region-p)
(mc/execute-command-for-all-cursors 'mark-sexp))
(setq mc--strings-to-replace (nreverse (mc--ordered-region-strings)))