1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-02 20:16:25 +00:00

Fix to select_window.

http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00346.html

* window.c (select_window): Check inhibit_point_swap argument when
deciding whether to return immediately.
This commit is contained in:
Martin Rudalics 2011-02-08 19:11:15 -05:00 committed by Chong Yidong
parent 9aabf64c78
commit bae1fa42dc
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-02-09 Martin Rudalics <rudalics@gmx.at>
* window.c (select_window): Check inhibit_point_swap argument when
deciding whether to return immediately.
2011-02-08 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become

View File

@ -3607,7 +3607,7 @@ select_window (window, norecord, inhibit_point_swap)
XSETFASTINT (w->use_time, window_select_count);
}
if (EQ (window, selected_window))
if (EQ (window, selected_window) && !inhibit_point_swap)
return window;
sf = SELECTED_FRAME ();