Sublime Forum

[BUG?] ScrollPastEnd and deleting lines

#1

Set scrollPastEnd to false.
Open a multi-page document.
Scroll to the bottom.
Select and delete less than a page’s worth of lines on the last page. The view will not change (i.e. you will now be scrolled past the end of the file).
Use the mouse-wheel to scroll down. The view scrolls up until you are not past the end of the file.

It would be sweet if the deletion of the lines scrolled the view up so that it doesn’t snap later.
I’ve hacked it right now with:

(‘scroll 0’ doesn’t work).

Thanks!

0 Likes

#2

Ah my hacky keybinding doesn’t work… Turns out the “scroll” command moves the insertion point if the insertion point is about to move off the screen. It makes it hard to work on the bottom line of a file… :smile:

0 Likes