aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-12-03 11:55:27 +0200
committerEli Zaretskii2011-12-03 11:55:27 +0200
commite9a494263ca8d8e39373597ebf432ee001d62e21 (patch)
treeb62516ae994d2584bc684936a2e029e216ae8493 /src
parent9e49252b2d8fe1a3f078ec0342df0008cea5059e (diff)
downloademacs-e9a494263ca8d8e39373597ebf432ee001d62e21.tar.gz
emacs-e9a494263ca8d8e39373597ebf432ee001d62e21.zip
Fix bug #10192 with assertion violation when scrolling.
src/xdisp.c (redisplay_window): Don't let `margin' become negative. This could happen when scroll-margin is zero and scroll-*-aggressively is a small float number.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/xdisp.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index efba68d99d6..61b44593062 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -3,6 +3,7 @@
3 * xdisp.c (handle_invisible_prop): If the invisible text ends just 3 * xdisp.c (handle_invisible_prop): If the invisible text ends just
4 before a newline, prepare the bidi iterator for consuming the 4 before a newline, prepare the bidi iterator for consuming the
5 newline, and keep the current paragraph direction. (Bug#10183) 5 newline, and keep the current paragraph direction. (Bug#10183)
6 (redisplay_window): Don't let `margin' become negative. (Bug#10192)
6 7
72011-12-02 Juri Linkov <juri@jurta.org> 82011-12-02 Juri Linkov <juri@jurta.org>
8 9
diff --git a/src/xdisp.c b/src/xdisp.c
index b9741d97d30..7708b9c40fa 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -15617,7 +15617,7 @@ redisplay_window (Lisp_Object window, int just_this_one_p)
15617 pt_offset = float_amount * WINDOW_BOX_TEXT_HEIGHT (w); 15617 pt_offset = float_amount * WINDOW_BOX_TEXT_HEIGHT (w);
15618 if (pt_offset == 0 && float_amount > 0) 15618 if (pt_offset == 0 && float_amount > 0)
15619 pt_offset = 1; 15619 pt_offset = 1;
15620 if (pt_offset) 15620 if (pt_offset && margin > 0)
15621 margin -= 1; 15621 margin -= 1;
15622 } 15622 }
15623 /* Compute how much to move the window start backward from 15623 /* Compute how much to move the window start backward from