branch: elpa/evil-goggles
commit 879114abeaad8515937cb2a762d0438b6b7bb026
Author: Evgeni Kolev <[email protected]>
Commit: Evgeni Kolev <[email protected]>

    Don't show the overlay when evil-mc is displaying multiple fake cursors
---
 evil-goggles.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/evil-goggles.el b/evil-goggles.el
index 044b73f95a..3e2e068a22 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -110,6 +110,8 @@ overlay must not be displayed.")
        (>= (point-max) end beg)
        (not (evil-visual-state-p))
        (not (evil-insert-state-p))
+       ;; don't show overlay when evil-mc has multiple fake cursors
+       (not (and (fboundp 'evil-mc-has-cursors-p) (evil-mc-has-cursors-p)))
        ;; don't show overlay when the region has nothing but whitespace
        (not (null (string-match-p "[^ \t\n]" (buffer-substring-no-properties 
beg end))))))
 

Reply via email to