aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 857870591f3..18adb62538b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5335,6 +5335,11 @@ window_scroll_pixel_based (Lisp_Object window, int n, bool whole, bool noerror)
5335 break; 5335 break;
5336 } 5336 }
5337 SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it)); 5337 SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it));
5338 /* Fix up the Y position to preserve, if it is inside the
5339 scroll margin at the window top. */
5340 if (window_scroll_pixel_based_preserve_y >= 0
5341 && window_scroll_pixel_based_preserve_y < this_scroll_margin)
5342 window_scroll_pixel_based_preserve_y = this_scroll_margin;
5338 } 5343 }
5339 } 5344 }
5340 else if (n < 0) 5345 else if (n < 0)