From 817a7a8d255150965c716791b4c3d1c9046f070c Mon Sep 17 00:00:00 2001 From: Leo Gaskin Date: Fri, 23 Dec 2022 15:54:59 +0100 Subject: [PATCH] Fix problem aborting mc/edit-lines when not in transient-mark-mode --- mc-edit-lines.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mc-edit-lines.el b/mc-edit-lines.el index 55772af..33e7df2 100644 --- a/mc-edit-lines.el +++ b/mc-edit-lines.el @@ -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 other non-nil value will cause short lines to be padded." (interactive "P") - (when (not (and mark-active (/= (point) (mark)))) + (unless mark-active (error "Mark a set of lines first")) (mc/remove-fake-cursors) (let* ((col (current-column))