gabesoft / evil-mc

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

evil-undo (`u`) unaligns the cursors #123

Open duianto opened 2 years ago

duianto commented 2 years ago

evil-undo (u) unaligns the cursors, undo (C-/) keeps them aligned.

Reproduction steps

With multiple words in a buffer.

abcdef
abcdef
abcdef

Observed

The real cursor moved to the position where the x was. The fake cursors remain at the beginning of the words.

abc[d]ef
[a]bcdef
[a]bcdef

Expected

The cursors should remain aligned. This behavior is observed when the Emacs undo command is used: C-/ (undo) All cursors move to the positions where the x's were.

abc[d]ef
abc[d]ef
abc[d]ef

The cursors should probably stay where they were when the undo command was called.

[a]bcdef
[a]bcdef
[a]bcdef

Notes

The same behavior is also observed when the words are unaligned.

System Info

evil-mc-20210730.1752 GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 Windows 21H1