Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evil-undo (u) unaligns the cursors #123

Open
duianto opened this issue Aug 1, 2021 · 0 comments
Open

evil-undo (u) unaligns the cursors #123

duianto opened this issue Aug 1, 2021 · 0 comments

Comments

@duianto
Copy link
Contributor

duianto commented Aug 1, 2021

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

Reproduction steps

With multiple words in a buffer.

abcdef
abcdef
abcdef
  • In evil normal state, create evil-mc cursors on all occurrences by pressing: grm
    The cursors appear at the end of the words.
abcde[f]
abcde[f]
abcde[f]
  • Move back the cursors to the left twice: hh
abc[d]ef
abc[d]ef
abc[d]ef
  • Enter evil insert state: i
abc|def
abc|def
abc|def
  • Type a character: x
abcx|def
abcx|def
abcx|def
  • Exit to evil normal state: esc
abc[x]def
abc[x]def
abc[x]def

Move the cursors to the beginning of the words: b

[a]bxcdef
[a]bxcdef
[a]bxcdef

Undo: u (evil-undo)

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.

  • evil-undo (u)
abc[d]ef
  [a]bcdef
    [a]bcdef
  • undo (C-/)
abc[d]ef
  abc[d]ef
    abc[d]ef

System Info

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant