diff options
| author | Dmitry Antipov | 2012-08-06 12:32:49 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-06 12:32:49 +0400 |
| commit | f99bac932bf883dbd4b91dc5ba21c77a23840be7 (patch) | |
| tree | 30d12297bf0429949f63836e7f2ab7f8e96e841a /src/window.c | |
| parent | 8c2a0f2dbf2a5022cd1641e87a3036f258e30a70 (diff) | |
| download | emacs-f99bac932bf883dbd4b91dc5ba21c77a23840be7.tar.gz emacs-f99bac932bf883dbd4b91dc5ba21c77a23840be7.zip | |
Fix replacement typo.
* window.c (replace_window): Set root_window instead of
selected_window. This fixes a total window subsystem
malfunction reported by Bastien Guerry <bzg@gnu.org>.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index fcd9c666553..1c62e6f00a7 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1841,7 +1841,7 @@ replace_window (Lisp_Object old, Lisp_Object new, int setflag) | |||
| 1841 | /* If OLD is its frame's root window, then NEW is the new | 1841 | /* If OLD is its frame's root window, then NEW is the new |
| 1842 | root window for that frame. */ | 1842 | root window for that frame. */ |
| 1843 | if (EQ (old, FRAME_ROOT_WINDOW (XFRAME (WVAR (o, frame))))) | 1843 | if (EQ (old, FRAME_ROOT_WINDOW (XFRAME (WVAR (o, frame))))) |
| 1844 | FSET (XFRAME (WVAR (o, frame)), selected_window, new); | 1844 | FSET (XFRAME (WVAR (o, frame)), root_window, new); |
| 1845 | 1845 | ||
| 1846 | if (setflag) | 1846 | if (setflag) |
| 1847 | { | 1847 | { |