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

This commit is contained in:
Maciej Katafiasz 2013-09-06 14:52:16 +02:00
parent 9f91a0455d
commit 18d858f0de

View File

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