Skip to content

enh: save buffer marks between runs#300

Merged
mitermayer merged 1 commit intoprettier:masterfrom
rodrigolive:lockmarks
Jun 3, 2021
Merged

enh: save buffer marks between runs#300
mitermayer merged 1 commit intoprettier:masterfrom
rodrigolive:lockmarks

Conversation

@rodrigolive
Copy link
Copy Markdown
Contributor

Summary

Fix marks buffer marks being lost after Prettier runs.

Fixes this issue #251

Test Plan

  • add a mark with ma, move around, jump to it with 'a
  • "uglify" a line in your code, run :Prettier to fix it
  • now do 'a, vim should jump the cursor to the marked position with ma. The line might not correspond exactly with the previous line due to lines changed by Prettier, but it should be close.

@mitermayer mitermayer merged commit aa0607c into prettier:master Jun 3, 2021
@mitermayer
Copy link
Copy Markdown
Member

Thank you

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.

2 participants