Skip to content

Undo stops should be created when exiting insert mode #382

@silversquirl

Description

@silversquirl

To demonstrate the issue:

  1. enter insert mode, type some text, exit insert mode
  2. repeat step 1
  3. press u to undo
  4. both insertions are undone

This behaviour is quite annoying, and it can even result in edits being undone in completely unrelated parts of the file, since undo stops are also not created when the cursor moves.

Also applies to situations where you insert some text, exit insert mode, do some simple editing, and then hit undo, expecting to undo your edits, but it deletes half the text you inserted as well.

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