diff options
| author | Eli Zaretskii | 2011-12-03 11:55:27 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-12-03 11:55:27 +0200 |
| commit | e9a494263ca8d8e39373597ebf432ee001d62e21 (patch) | |
| tree | b62516ae994d2584bc684936a2e029e216ae8493 /src | |
| parent | 9e49252b2d8fe1a3f078ec0342df0008cea5059e (diff) | |
| download | emacs-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/ChangeLog | 1 | ||||
| -rw-r--r-- | src/xdisp.c | 2 |
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 | ||
| 7 | 2011-12-02 Juri Linkov <juri@jurta.org> | 8 | 2011-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 |