Skip to content

evil-undo (u) hides fake cursors until they are moved #122

@duianto

Description

@duianto

evil-undo (u) hides the fake cursors until they are moved,
undo (C-/) keeps them visible.

Reproduction steps

With multiple words in a buffer.

abc
abc
abc
  • In evil normal state, add evil-mc cursors on all occurrences. Press: grm
    The cursors appear at the end of the words.
ab[c]
ab[c]
ab[c]
  • Enter evil insert state: i
ab|c
ab|c
ab|c
  • Type a character: x
abx|c
abx|c
abx|c
  • Exit to evil normal state: esc
ab[x]c
ab[x]c
ab[x]c
  • Undo the typed character by pressing: u (it calls evil-undo)

Observed

ab[c]
abc
abc

The fake cursors disappeared.
The mode line still shows: emc:3

Moving the cursors left: h
Shows the fake cursors.

a[b]c
a[b]c
a[b]c

Expected

The fake cursors should remain visible.
This behavior is observed when the Emacs undo command is used:
C-/ (it calls undo)

ab[c]
ab[c]
ab[c]

System Info

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions