gabesoft / evil-mc

Multiple cursors implementation for evil-mode
MIT License
383 stars 35 forks source link

evil-mc invokes python-skeleton-if (-for) if cursor is after if (for) #74

Closed joonro closed 6 years ago

joonro commented 6 years ago

Hi,

I'm not sure if I'm the only one having this issue - I just tried this and it happens with both if and for. (I assume other skeleton will work as well).

For example, when I have two cursors on the n's in the following line:

for 'n' 'n'

pressing c w invokes python-skeleton-for and I get Iteration spec: in the mode line.

If I quit with c-g, I get Error in post-command-hook (evil-mc-execute-for-all): (quit . recursive) message.

gabesoft commented 6 years ago

I'm not able to reproduce this issue. It's probably related to your set up. Can you quit with gru?

joonro commented 6 years ago

Sorry, I should have closed this. In turns out that evil-mode was calling expand-abbrev because expand-abbrev was in evil-insert-state-exit-hook. Having (setq evil-want-abbrev-expand-on-insert-exit nil) before loading evil fixed the issue.