diff options
| author | Eli Zaretskii | 2011-12-09 20:40:42 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-12-09 20:40:42 +0200 |
| commit | 7cd4e72cff31ec6a28d9e63c4d390d478d8619f1 (patch) | |
| tree | 9bd843d42ef2df0dcbca18cba363fc522c3a5ac1 /src | |
| parent | b34d73171792a089e2fc3728990deae186578c83 (diff) | |
| download | emacs-7cd4e72cff31ec6a28d9e63c4d390d478d8619f1.tar.gz emacs-7cd4e72cff31ec6a28d9e63c4d390d478d8619f1.zip | |
Fix bug #10170 with extra scrolling after C-s.
src/xdisp.c (try_scrolling): Don't set scroll_down_p if dy is zero.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 44f80ae4098..026aa6f0d04 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-12-09 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (try_scrolling): Don't set scroll_down_p if dy is zero. | ||
| 4 | (Bug#10170) | ||
| 5 | |||
| 1 | 2011-12-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 6 | 2011-12-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 7 | ||
| 3 | * unexelf.c (unexec) [NS_IMPL_GNUSTEP]: Take account of the case | 8 | * unexelf.c (unexec) [NS_IMPL_GNUSTEP]: Take account of the case |
diff --git a/src/xdisp.c b/src/xdisp.c index 3ac5651975b..87bbded9208 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -14360,7 +14360,7 @@ try_scrolling (Lisp_Object window, int just_this_one_p, | |||
| 14360 | { | 14360 | { |
| 14361 | int scroll_margin_y; | 14361 | int scroll_margin_y; |
| 14362 | 14362 | ||
| 14363 | /* Compute the pixel ypos of the scroll margin, then move it to | 14363 | /* Compute the pixel ypos of the scroll margin, then move IT to |
| 14364 | either that ypos or PT, whichever comes first. */ | 14364 | either that ypos or PT, whichever comes first. */ |
| 14365 | start_display (&it, w, startp); | 14365 | start_display (&it, w, startp); |
| 14366 | scroll_margin_y = it.last_visible_y - this_scroll_margin | 14366 | scroll_margin_y = it.last_visible_y - this_scroll_margin |
| @@ -14390,7 +14390,8 @@ try_scrolling (Lisp_Object window, int just_this_one_p, | |||
| 14390 | if (dy > scroll_max) | 14390 | if (dy > scroll_max) |
| 14391 | return SCROLLING_FAILED; | 14391 | return SCROLLING_FAILED; |
| 14392 | 14392 | ||
| 14393 | scroll_down_p = 1; | 14393 | if (dy > 0) |
| 14394 | scroll_down_p = 1; | ||
| 14394 | } | 14395 | } |
| 14395 | } | 14396 | } |
| 14396 | 14397 | ||