Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues/184 fixing undo step #207

Merged
merged 4 commits into from
Sep 14, 2019
Merged

Conversation

mitermayer
Copy link
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.

None yet

1 participant