waynemoore / sublime-gherkin-formatter

Gherkin Formatter for Sublime Text 2 and 3
MIT License
26 stars 3 forks source link

Page focus moves to the top of the page #13

Open artismarti opened 10 years ago

artismarti commented 10 years ago

After using the formatter the focus of the page shifts from where you currently are to the top of the page. Make it stop. Kthnxbye.

waynemoore commented 10 years ago

This should have been fixed in #7 "Leave the caret where it is"

@artismarti can you please confirm this is still the case now that you've updated the plugin to the latest version?

artismarti commented 10 years ago

@waynemoore The caret remains in place, but page focus shifts from where you currently are to the top of the page.

image

JeanMertz commented 8 years ago

Just wanted to note that I've seen the same happen.

The window slightly shifts focus to the right, which is a bit annoying, especially since I use a hook to run the formatter every time on save.

I noticed this only happening when the cursor is actually in view, if not, things work as expected.