Skip to content

Undo stops should be created when exiting insert mode #382

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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