diff options
| author | Kim F. Storm | 2005-01-24 13:22:07 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-01-24 13:22:07 +0000 |
| commit | 6f67f013b6238a7c0b9a6904eea8cd912aa62d2e (patch) | |
| tree | faf42e2709172f4ffd2dc8e7b9295afe7aa5cacb /src | |
| parent | f2417699a5b06e972e5f2cedd05d756c38b0841f (diff) | |
| download | emacs-6f67f013b6238a7c0b9a6904eea8cd912aa62d2e.tar.gz emacs-6f67f013b6238a7c0b9a6904eea8cd912aa62d2e.zip | |
(redisplay_window): Only try to make cursor line fully
visible once (to avoid redisplay loop).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3dc45c96ef5..f2678e68ef5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2005-01-24 Kim F. Storm <storm@cua.dk> | 1 | 2005-01-24 Kim F. Storm <storm@cua.dk> |
| 2 | 2 | ||
| 3 | * window.c (window_scroll_pixel_based): Fix scrolling in the wrong | ||
| 4 | direction if window height was smaller than next-screen-context-lines. | ||
| 5 | Now always scroll at least one line in the requested direction. | ||
| 6 | Ensure that we actually do scroll backwards when requested to do so. | ||
| 7 | |||
| 3 | * xdisp.c (redisplay_window): Only try to make cursor line fully | 8 | * xdisp.c (redisplay_window): Only try to make cursor line fully |
| 4 | visible once (to avoid redisplay loop). | 9 | visible once (to avoid redisplay loop). |
| 5 | 10 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index f1877c494cb..afcc4844ab2 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -12231,6 +12231,8 @@ redisplay_window (window, just_this_one_p) | |||
| 12231 | /* If centering point failed to make the whole line visible, | 12231 | /* If centering point failed to make the whole line visible, |
| 12232 | put point at the top instead. That has to make the whole line | 12232 | put point at the top instead. That has to make the whole line |
| 12233 | visible, if it can be done. */ | 12233 | visible, if it can be done. */ |
| 12234 | if (centering_position == 0) | ||
| 12235 | goto done; | ||
| 12234 | clear_glyph_matrix (w->desired_matrix); | 12236 | clear_glyph_matrix (w->desired_matrix); |
| 12235 | centering_position = 0; | 12237 | centering_position = 0; |
| 12236 | goto point_at_top; | 12238 | goto point_at_top; |