Skip to content

Issues/184 fixing undo step#207

Merged
mitermayer merged 4 commits into
release/1.xfrom
issues/184-fixing-undo-step
Sep 14, 2019
Merged

Issues/184 fixing undo step#207
mitermayer merged 4 commits into
release/1.xfrom
issues/184-fixing-undo-step

Conversation

@mitermayer

Copy link
Copy Markdown
Member

This PR fixes the undo jump of cursor after formatting.

In order to properly fix the cursor issue we have to do some other minor fixes:

  • ensure that autosave does not trigger commands
  • ensure that write does not trigger commands
  • create a unmodified change and merge to undo stack prior to formatting

fixes: #184

- when formatting files we should not trigger auto commands
- in order to bypass vimdefaults we can fake a change prior to
formatting and merging that back to undostack operation
@mitermayer mitermayer merged commit 2bc9378 into release/1.x Sep 14, 2019
@mitermayer mitermayer deleted the issues/184-fixing-undo-step branch September 14, 2019 05:29
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

Successfully merging this pull request may close these issues.

1 participant