branch: elpa/multiple-cursors
commit e41990361231075b678ec27cbdc1379782c0b988
Merge: 0e49fec f628df7
Author: Magnar Sveen <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #324 from mkcms/master
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 06f1dfe..4ca8e75 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -155,7 +155,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)