diff options
| author | Glenn Morris | 2018-12-15 15:19:25 -0800 |
|---|---|---|
| committer | Glenn Morris | 2018-12-15 15:19:25 -0800 |
| commit | 2e2fb82e5f187614bd6997a3ace72d07bba4f1ab (patch) | |
| tree | f54dc1ac78b7fd10e23e37ddee2337a83463b3e0 /src/window.c | |
| parent | 498b6cb0bf882367fe73f5efee5154348c209aea (diff) | |
| parent | fa953b58afd39d396dab4d76a6ff0b8ba4040eb8 (diff) | |
| download | emacs-2e2fb82e5f187614bd6997a3ace72d07bba4f1ab.tar.gz emacs-2e2fb82e5f187614bd6997a3ace72d07bba4f1ab.zip | |
Merge from origin/emacs-26
fa953b5 (origin/emacs-26) Fix an epg test for recent GnuPG versions (...
3015636 Document font structure layout constraints
f14d574 Document font structure layout constraints
f519aa1 Fix display of line numbers in empty lines beyond EOB
24b5026 Fix redisplay when a window's scroll bar or fringes are changed
5d1b158 Tiny markup fix in Elisp manual
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index 9da77ffc972..14b3364477e 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -7176,6 +7176,11 @@ set_window_fringes (struct window *w, Lisp_Object left_width, | |||
| 7176 | w->right_fringe_width = right; | 7176 | w->right_fringe_width = right; |
| 7177 | w->fringes_outside_margins = outside; | 7177 | w->fringes_outside_margins = outside; |
| 7178 | 7178 | ||
| 7179 | /* This is needed to trigger immediate redisplay of the window | ||
| 7180 | when its fringes are changed, because fringes are redrawn | ||
| 7181 | only if update_window is called, so we must trigger that even | ||
| 7182 | if the window's glyph matrices did not change at all. */ | ||
| 7183 | windows_or_buffers_changed = 35; | ||
| 7179 | return w; | 7184 | return w; |
| 7180 | } | 7185 | } |
| 7181 | else | 7186 | else |
| @@ -7293,6 +7298,12 @@ set_window_scroll_bars (struct window *w, Lisp_Object width, | |||
| 7293 | wset_horizontal_scroll_bar_type (w, Qnil); | 7298 | wset_horizontal_scroll_bar_type (w, Qnil); |
| 7294 | #endif | 7299 | #endif |
| 7295 | 7300 | ||
| 7301 | /* This is needed to trigger immediate redisplay of the window when | ||
| 7302 | scroll bars are changed, because scroll bars are redisplayed only | ||
| 7303 | if more than a single window needs to be considered, see | ||
| 7304 | redisplay_internal. */ | ||
| 7305 | if (changed) | ||
| 7306 | windows_or_buffers_changed = 31; | ||
| 7296 | return changed ? w : NULL; | 7307 | return changed ? w : NULL; |
| 7297 | } | 7308 | } |
| 7298 | 7309 | ||