branch: elpa/multiple-cursors
commit f628df72a1cbcfb8f1a49503f5018c61f1a8cd10
Author: Michał K <[email protected]>
Commit: Michał K <[email protected]>
Always call `mark` with `mark-even-if-inactive` set to t
---
multiple-cursors-core.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index d448617..2e3babc 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -154,7 +154,9 @@ highlights the entire width of the window."
(defun mc/store-current-state-in-overlay (o)
"Store relevant info about point and mark in the given overlay."
(overlay-put o 'point (set-marker (make-marker) (point)))
- (overlay-put o 'mark (set-marker (make-marker) (mark)))
+ (overlay-put o 'mark (set-marker (make-marker)
+ (let ((mark-even-if-inactive t))
+ (mark))))
(dolist (var mc/cursor-specific-vars)
(when (boundp var) (overlay-put o var (symbol-value var))))
o)