Commit ee3254b6 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: simply set the proper scrolling mode, instead of imitating it

parent 938aa63d
Showing with 2 additions and 4 deletions
+2 -4
...@@ -3206,10 +3206,8 @@ void edit_refresh(void) ...@@ -3206,10 +3206,8 @@ void edit_refresh(void)
#endif #endif
/* If the current line is out of view, get it back on screen. */ /* If the current line is out of view, get it back on screen. */
if (current_is_offscreen()) { if (current_is_offscreen())
openfile->current_y = editwinrows - 1; adjust_viewport((focusing || !ISSET(SMOOTH_SCROLL)) ? CENTERING : FLOWING);
adjust_viewport((focusing || !ISSET(SMOOTH_SCROLL)) ? CENTERING : STATIONARY);
}
line = openfile->edittop; line = openfile->edittop;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment