From 18d858f0de1141b5b1864bf4f27bd9647bea1ee0 Mon Sep 17 00:00:00 2001 From: Maciej Katafiasz Date: Fri, 6 Sep 2013 14:52:16 +0200 Subject: [PATCH] Fall straight through in 'mc/mark-all-dwim' if multiple cursors are already active, as that means we can't sensibly edit lines or mark all in region --- mc-mark-more.el | 1 + 1 file changed, 1 insertion(+) diff --git a/mc-mark-more.el b/mc-mark-more.el index 02afcab..e07b360 100644 --- a/mc-mark-more.el +++ b/mc-mark-more.el @@ -427,6 +427,7 @@ If the region is inactive or on a single line, it will behave like `mc/mark-all-like-this-dwim'." (interactive "P") (if (and (use-region-p) + (not (> (mc/num-cursors) 0)) (not (= (line-number-at-pos (region-beginning)) (line-number-at-pos (region-end))))) (if arg