Commit 22800ae9 authored by Stefan Monnier's avatar Stefan Monnier

* src/window.c (select_window): Call second wset_redisplay before we change

selected_window.

Fixes: debbugs:16034
parent c521fe29
2013-12-04 Stefan Monnier <monnier@iro.umontreal.ca>
* window.c (select_window): Call second wset_redisplay before we change
selected_window (bug#16034).
2013-12-04 Paul Eggert <eggert@cs.ucla.edu> 2013-12-04 Paul Eggert <eggert@cs.ucla.edu>
* bidi.c (LRM_CHAR, RLM_CHAR): Remove; no longer used. * bidi.c (LRM_CHAR, RLM_CHAR): Remove; no longer used.
......
...@@ -487,11 +487,14 @@ select_window (Lisp_Object window, Lisp_Object norecord, int inhibit_point_swap) ...@@ -487,11 +487,14 @@ select_window (Lisp_Object window, Lisp_Object norecord, int inhibit_point_swap)
goto record_and_return; goto record_and_return;
if (NILP (norecord)) if (NILP (norecord))
/* Mark the window for redisplay since the selected-window has a different { /* Mark the window for redisplay since the selected-window has
mode-line. */ a different mode-line. */
wset_redisplay (XWINDOW (selected_window)); wset_redisplay (XWINDOW (selected_window));
wset_redisplay (w);
}
else else
redisplay_other_windows (); redisplay_other_windows ();
sf = SELECTED_FRAME (); sf = SELECTED_FRAME ();
if (XFRAME (WINDOW_FRAME (w)) != sf) if (XFRAME (WINDOW_FRAME (w)) != sf)
{ {
...@@ -510,8 +513,6 @@ select_window (Lisp_Object window, Lisp_Object norecord, int inhibit_point_swap) ...@@ -510,8 +513,6 @@ select_window (Lisp_Object window, Lisp_Object norecord, int inhibit_point_swap)
select_window_1 (window, inhibit_point_swap); select_window_1 (window, inhibit_point_swap);
bset_last_selected_window (XBUFFER (w->contents), window); bset_last_selected_window (XBUFFER (w->contents), window);
if (NILP (norecord))
wset_redisplay (w);
record_and_return: record_and_return:
/* record_buffer can run QUIT, so make sure it is run only after we have /* record_buffer can run QUIT, so make sure it is run only after we have
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment