summaryrefslogtreecommitdiff
path: root/src/gui/gtk
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-05-18 17:47:45 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-05-18 17:47:45 +0200
commit4bfc005d9d1ca70a212884e347c0b3394bd97d6a (patch)
treec5015aee61e8ee255abbd50a70c09d474fadad0a /src/gui/gtk
parent6d0e15e0d78d76ed37a59db1833b91cd76c24de8 (diff)
downloadweechat-4bfc005d9d1ca70a212884e347c0b3394bd97d6a.zip
Add new keys to move into last visited buffers (alt + "<", alt + ">"), come back to last visited buffer when closing a buffer
Diffstat (limited to 'src/gui/gtk')
-rw-r--r--src/gui/gtk/gui-gtk-window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/gtk/gui-gtk-window.c b/src/gui/gtk/gui-gtk-window.c
index 5d1abe61b..ecb836257 100644
--- a/src/gui/gtk/gui-gtk-window.c
+++ b/src/gui/gtk/gui-gtk-window.c
@@ -202,7 +202,11 @@ gui_window_switch_to_buffer (struct t_gui_window *window,
{
window->start_line = NULL;
window->start_line_pos = 0;
- gui_previous_buffer = window->buffer;
+ if (!gui_buffers_visited_frozen)
+ {
+ gui_buffer_visited_add (window->buffer);
+ gui_buffer_visited_add (buffer);
+ }
if (set_last_read)
{
if (window->buffer->num_displayed == 0)