Merge pull request #324 from mkcms/master

Always call `mark` with `mark-even-if-inactive` set to t
This commit is contained in:
Magnar Sveen 2018-04-06 14:47:29 +02:00 committed by GitHub
commit e419903612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)