summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-05-18 18:35:39 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-05-18 18:35:39 +0200
commit906c4ce8cda8a193fcd77d1c7e34eff08a7ad5c9 (patch)
tree6606770e9bbcedc826d48b0c5b55c662bda21442 /src/gui
parent3561fa88567c373c71aa59245fd48c5c8f9e0fff (diff)
downloadweechat-906c4ce8cda8a193fcd77d1c7e34eff08a7ad5c9.zip
Add option weechat.look.jump_previous_buffer_when_closing
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 4cc719882..99a30449c 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -1403,7 +1403,8 @@ gui_buffer_close (struct t_gui_buffer *buffer)
/* find other buffer to display: previously visited buffer if current
window is displaying buffer, or buffer # - 1 */
ptr_buffer_visited = NULL;
- if (gui_current_window->buffer == buffer)
+ if (CONFIG_BOOLEAN(config_look_jump_previous_buffer_when_closing)
+ && (gui_current_window->buffer == buffer))
{
index = gui_buffer_visited_get_index_previous ();
if (index >= 0)