diff options
| author | Eli Zaretskii | 2022-03-19 09:19:53 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-03-19 09:19:53 +0200 |
| commit | e059d7c156edb37a7c836906b9a3510adee3d543 (patch) | |
| tree | b1aacc381022538d36cc6dc6373a09a9d2570588 /src | |
| parent | c4596c8522e221ecff847a4d997c133436b07e1a (diff) | |
| download | emacs-e059d7c156edb37a7c836906b9a3510adee3d543.tar.gz emacs-e059d7c156edb37a7c836906b9a3510adee3d543.zip | |
Fix region highlight in non-selected windows
* src/xdisp.c (prepare_menu_bars): Include in the windows passed
to pre-redisplay-functions windows whose point was moved from the
last recorded position. (Bug#54450)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 3f283d6732a..44f2536880b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -12825,9 +12825,12 @@ prepare_menu_bars (void) | |||
| 12825 | { | 12825 | { |
| 12826 | Lisp_Object this = XCAR (ws); | 12826 | Lisp_Object this = XCAR (ws); |
| 12827 | struct window *w = XWINDOW (this); | 12827 | struct window *w = XWINDOW (this); |
| 12828 | /* Cf. conditions for redisplaying a window at the | ||
| 12829 | beginning of redisplay_window. */ | ||
| 12828 | if (w->redisplay | 12830 | if (w->redisplay |
| 12829 | || XFRAME (w->frame)->redisplay | 12831 | || XFRAME (w->frame)->redisplay |
| 12830 | || XBUFFER (w->contents)->text->redisplay) | 12832 | || XBUFFER (w->contents)->text->redisplay |
| 12833 | || BUF_PT (XBUFFER (w->contents)) != w->last_point) | ||
| 12831 | { | 12834 | { |
| 12832 | windows = Fcons (this, windows); | 12835 | windows = Fcons (this, windows); |
| 12833 | } | 12836 | } |