summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-09-15 13:07:52 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-09-15 13:07:52 +0000
commitc953db4d6457991c3203e734978a5f8f5f80dff9 (patch)
tree1fe51ef274cd2084e01d86ca1dc8bfac604b68df /src
parent9d6ca204789dcf1ea4d020f294ba1dcee67a2d48 (diff)
downloadweechat-c953db4d6457991c3203e734978a5f8f5f80dff9.zip
Fixed window swtich functions (was changing windows buffer and should not)
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui-common.c b/src/gui/gui-common.c
index ab0d38231..5aeed56fa 100644
--- a/src/gui/gui-common.c
+++ b/src/gui/gui-common.c
@@ -1676,7 +1676,7 @@ gui_switch_to_previous_window (t_gui_window *window)
return;
gui_current_window = (window->prev_window) ? window->prev_window : last_gui_window;
- gui_switch_to_buffer (gui_current_window, window->buffer);
+ gui_switch_to_buffer (gui_current_window, gui_current_window->buffer);
gui_redraw_buffer (gui_current_window->buffer);
}
@@ -1695,7 +1695,7 @@ gui_switch_to_next_window (t_gui_window *window)
return;
gui_current_window = (window->next_window) ? window->next_window : gui_windows;
- gui_switch_to_buffer (gui_current_window, window->buffer);
+ gui_switch_to_buffer (gui_current_window, gui_current_window->buffer);
gui_redraw_buffer (gui_current_window->buffer);
}