1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +02:00

Add option weechat.look.jump_previous_buffer_when_closing

This commit is contained in:
Sebastien Helleu
2009-05-18 18:35:39 +02:00
parent 3561fa8856
commit 906c4ce8cd
14 changed files with 91 additions and 10 deletions
+2 -1
View File
@@ -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)