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)
This commit is contained in:
parent
c4596c8522
commit
e059d7c156
1 changed files with 4 additions and 1 deletions
|
@ -12825,9 +12825,12 @@ prepare_menu_bars (void)
|
|||
{
|
||||
Lisp_Object this = XCAR (ws);
|
||||
struct window *w = XWINDOW (this);
|
||||
/* Cf. conditions for redisplaying a window at the
|
||||
beginning of redisplay_window. */
|
||||
if (w->redisplay
|
||||
|| XFRAME (w->frame)->redisplay
|
||||
|| XBUFFER (w->contents)->text->redisplay)
|
||||
|| XBUFFER (w->contents)->text->redisplay
|
||||
|| BUF_PT (XBUFFER (w->contents)) != w->last_point)
|
||||
{
|
||||
windows = Fcons (this, windows);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue