diff options
| author | Kim F. Storm | 2004-04-13 21:30:56 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-04-13 21:30:56 +0000 |
| commit | ed8226ea4141cb16a8392e2106ecf428fa56f1e0 (patch) | |
| tree | 0409c2f17eb2301971fb812ad3899df4756770d0 /src | |
| parent | d68de522ca10547a4d26e457c0e05639498051d1 (diff) | |
| download | emacs-ed8226ea4141cb16a8392e2106ecf428fa56f1e0.tar.gz emacs-ed8226ea4141cb16a8392e2106ecf428fa56f1e0.zip | |
(update_window): Only set changed_p if
scrolling_window actually did scroll.
(scrolling_window): Only return 1 if we actually did scroll.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index e1a3ed93dab..987562b0bef 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -4130,9 +4130,11 @@ update_window (w, force_p) | |||
| 4130 | goto set_cursor; | 4130 | goto set_cursor; |
| 4131 | } | 4131 | } |
| 4132 | else if (rc > 0) | 4132 | else if (rc > 0) |
| 4133 | /* We've scrolled the display. */ | 4133 | { |
| 4134 | force_p = 1; | 4134 | /* We've scrolled the display. */ |
| 4135 | changed_p = 1; | 4135 | force_p = 1; |
| 4136 | changed_p = 1; | ||
| 4137 | } | ||
| 4136 | } | 4138 | } |
| 4137 | 4139 | ||
| 4138 | /* Update the rest of the lines. */ | 4140 | /* Update the rest of the lines. */ |
| @@ -5049,8 +5051,8 @@ scrolling_window (w, header_line_p) | |||
| 5049 | for (i = 0; i < row_entry_idx; ++i) | 5051 | for (i = 0; i < row_entry_idx; ++i) |
| 5050 | row_table[row_entry_pool[i].bucket] = NULL; | 5052 | row_table[row_entry_pool[i].bucket] = NULL; |
| 5051 | 5053 | ||
| 5052 | /* Value is non-zero to indicate that we scrolled the display. */ | 5054 | /* Value is > 0 to indicate that we scrolled the display. */ |
| 5053 | return 1; | 5055 | return nruns; |
| 5054 | } | 5056 | } |
| 5055 | 5057 | ||
| 5056 | 5058 | ||
| @@ -5909,13 +5911,13 @@ marginal_area_string (w, part, x, y, charpos, object, dx, dy, width, height) | |||
| 5909 | it's the one we were looking for. */ | 5911 | it's the one we were looking for. */ |
| 5910 | if (area == RIGHT_MARGIN_AREA) | 5912 | if (area == RIGHT_MARGIN_AREA) |
| 5911 | x0 = ((WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) | 5913 | x0 = ((WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) |
| 5912 | ? WINDOW_LEFT_FRINGE_WIDTH (w) | 5914 | ? WINDOW_LEFT_FRINGE_WIDTH (w) |
| 5913 | : WINDOW_TOTAL_FRINGE_WIDTH (w)) | 5915 | : WINDOW_TOTAL_FRINGE_WIDTH (w)) |
| 5914 | + window_box_width (w, LEFT_MARGIN_AREA) | 5916 | + window_box_width (w, LEFT_MARGIN_AREA) |
| 5915 | + window_box_width (w, TEXT_AREA)); | 5917 | + window_box_width (w, TEXT_AREA)); |
| 5916 | else | 5918 | else |
| 5917 | x0 = (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) | 5919 | x0 = (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) |
| 5918 | ? WINDOW_LEFT_FRINGE_WIDTH (w) | 5920 | ? WINDOW_LEFT_FRINGE_WIDTH (w) |
| 5919 | : 0); | 5921 | : 0); |
| 5920 | 5922 | ||
| 5921 | glyph = row->glyphs[area]; | 5923 | glyph = row->glyphs[area]; |