Fix problem aborting mc/edit-lines when not in transient-mark-mode

This commit is contained in:
Leo Gaskin 2022-12-23 15:54:59 +01:00 committed by Magnar Sveen
parent c9ea562bd5
commit 817a7a8d25

View File

@ -50,7 +50,7 @@ that symbol is used instead of `mc/edit-lines-empty-lines'.
Otherwise, if ARG negative, short lines will be ignored. Any Otherwise, if ARG negative, short lines will be ignored. Any
other non-nil value will cause short lines to be padded." other non-nil value will cause short lines to be padded."
(interactive "P") (interactive "P")
(when (not (and mark-active (/= (point) (mark)))) (unless mark-active
(error "Mark a set of lines first")) (error "Mark a set of lines first"))
(mc/remove-fake-cursors) (mc/remove-fake-cursors)
(let* ((col (current-column)) (let* ((col (current-column))