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

Scroll position moves on save #27

Closed
Rowno opened this issue Mar 12, 2014 · 15 comments
Closed

Scroll position moves on save #27

Rowno opened this issue Mar 12, 2014 · 15 comments

Comments

@Rowno
Copy link

Rowno commented Mar 12, 2014

A recent update added a bug that causes the editor to scroll up 1 line every time the editor is saved. I think 2e68c0c is causing it because I'm pretty sure this wasn't happening last week.

I'm using Sublime Text 3 on Mac OSX 10.9 / Ubuntu 13.10.

@ghost
Copy link

ghost commented Mar 12, 2014

Can confirm I'm getting this too, here's a licecap gif showing the behaviour:

editorconfig-scroll-save

I'm using Sublime Text 3 on Mac OSX 10.9.2

@dpashkevich
Copy link

For me it's even worse, the scroll position gets reset to the beginning of the file every time I hit save.
Using ST2 under Ubuntu 12.04

@StefanoRausch
Copy link

ST 2 on Mac does scroll 1 line for me.

@karlschwaier
Copy link

I have the same issue with ST2 on Ubuntu 13.10. It scrolls exactly one line up after saving.

@dpashkevich
Copy link

Interestingly, I have one line up scrolling on a 13.10 machine with ST2 (same configuration) as others report, but on 12.04 it's different (reported above)

@joshfry
Copy link

joshfry commented Mar 19, 2014

I'm having the same issue using ST2 and ST3 on Mac OS 10.9.2. Depending on font size, on save, it will either scroll up one line until it reaches the top or will jitter on one line.

@lancedikson
Copy link

I have the same issue with ST2 on Windows 7

@philippotto
Copy link

I'm experiencing the same issue with ST3 on Windows 8.

@daniel-wer
Copy link

Same issue for me with ST2 on Ubuntu 12.04, scrolls one line for some files and up to the top for some others.

@sindresorhus
Copy link
Owner

I've worked around it, but it's really a bug in Sublime.

@dpashkevich
Copy link

Thanks!

So ST's implementation of translate_tabs_to_spaces is buggy, but I don't see any scroll jumping when I manually invoke the default commands Indentation: Convert to Tabs/Spaces. Is there something else happening?

@sindresorhus
Copy link
Owner

@dpashkevich it's the expand_tabs command that causes it.

@dpashkevich
Copy link

Oh ok, thanks for clarifying! Just tried to do some additional testing.

@drguiom
Copy link

drguiom commented Jan 3, 2019

I know this is a really old post but I can't find an answer as to how this has been fixed.

Every time I save a file (Mac OSX 10.13.6 and Sublime Text 3.1.1) the cursor position jumps near the top of the file.

@rowe-morehouse
Copy link

Experiencing the same issue with JSON files after installing JSON key-value package. Sublime 3.2.2. build 3211

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

No branches or pull requests