Why isn’t a type .less
file scroll position remembered on reload? My .coffee
files are.
Why isn't less file scroll position remembered on reload?
mark_hahn
#1
leedohm
#2
I think what’s happening (at least what seems to be happening when I try to repro this) is that Atom:
- Deserializes the editor view (which places the scroll position back where it was when you exited)
- Scrolls to put the cursor in the visible area
When I had the cursor on line 1 in my styles.less
file and scrolled to put line 42 at the top of the view before exiting, it would behave like above. When I put the cursor on line 42 and scrolled to put line 42 at the top of the view, it restored the previous location like I expected.
mark_hahn
#3
I don’t see any scrolling at all after the reload. The scroll and cursor are always at line 1. I’ll play with it some more.