Skip to content

esc unaligns the cursors, when real cursor on first column #124

@duianto

Description

@duianto

esc unaligns the cursors when the real cursor is on the first column, but at least one fake cursor is not.

Reproduction steps

With multiple words in a buffer.
and at least one word is indented.

abc
  abc
    abc
  • In evil normal state, create evil-mc cursors on all occurrences by pressing: grm
    The cursors appear at the end of the words.
ab[c]
  ab[c]
    ab[c]
  • Move back the cursors to the beginning of the words: b
[a]bc
  [a]bc
    [a]bc
  • Enter evil insert state: i
|abc
  |abc
    |abc
  • Exit to evil normal state: esc

Observed

The fake cursors moved to the left once.
They are now unaligned with the real cursor.

[a]bc
 [ ]abc
   [ ]abc

Expected

The cursors should remain aligned.

[a]bc
  [a]bc
    [a]bc

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