diff options
| author | Kim F. Storm | 2005-02-10 22:49:16 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-02-10 22:49:16 +0000 |
| commit | f1deb763a49fb5bbf3fda609c61d1d6937d531c5 (patch) | |
| tree | 3e2e3b389242691220a2c9d87ce3ef1696f5d1bc | |
| parent | c10bb00a967e145c8fc1ebf277ad45f49e0f8e69 (diff) | |
| download | emacs-f1deb763a49fb5bbf3fda609c61d1d6937d531c5.tar.gz emacs-f1deb763a49fb5bbf3fda609c61d1d6937d531c5.zip | |
(try_window_id): Set first_unchanged_at_end_row to NULL
if it moves outside window or it doesn't display text.
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index db4b2a244ac..0f385dc08df 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -13824,7 +13824,12 @@ try_window_id (w) | |||
| 13824 | bottom_vpos, dy); | 13824 | bottom_vpos, dy); |
| 13825 | 13825 | ||
| 13826 | if (first_unchanged_at_end_row) | 13826 | if (first_unchanged_at_end_row) |
| 13827 | first_unchanged_at_end_row += dvpos; | 13827 | { |
| 13828 | first_unchanged_at_end_row += dvpos; | ||
| 13829 | if (first_unchanged_at_end_row->y >= it.last_visible_y | ||
| 13830 | || !MATRIX_ROW_DISPLAYS_TEXT_P (first_unchanged_at_end_row)) | ||
| 13831 | first_unchanged_at_end_row = NULL; | ||
| 13832 | } | ||
| 13828 | 13833 | ||
| 13829 | /* If scrolling up, there may be some lines to display at the end of | 13834 | /* If scrolling up, there may be some lines to display at the end of |
| 13830 | the window. */ | 13835 | the window. */ |
| @@ -13881,7 +13886,6 @@ try_window_id (w) | |||
| 13881 | 13886 | ||
| 13882 | /* Update window_end_pos and window_end_vpos. */ | 13887 | /* Update window_end_pos and window_end_vpos. */ |
| 13883 | if (first_unchanged_at_end_row | 13888 | if (first_unchanged_at_end_row |
| 13884 | && first_unchanged_at_end_row->y < it.last_visible_y | ||
| 13885 | && !last_text_row_at_end) | 13889 | && !last_text_row_at_end) |
| 13886 | { | 13890 | { |
| 13887 | /* Window end line if one of the preserved rows from the current | 13891 | /* Window end line if one of the preserved rows from the current |