Skip to content

Commit

Permalink
Merge pull request #324 from mkcms/master
Browse files Browse the repository at this point in the history
Always call `mark` with `mark-even-if-inactive` set to t
  • Loading branch information
magnars committed Apr 6, 2018
2 parents 0e49fec + f628df7 commit e419903
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion multiple-cursors-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e419903

Please sign in to comment.