1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 11:43:13 +02:00

Add new option weechat.look.input_share (task #9228)

This commit is contained in:
Sebastien Helleu
2010-09-27 16:07:27 +02:00
parent 91343167cd
commit bd7ae6d5a7
21 changed files with 160 additions and 18 deletions
+12
View File
@@ -576,6 +576,12 @@ gui_window_switch_to_buffer (struct t_gui_window *window,
window->buffer->lines->last_read_line = window->buffer->lines->last_line;
}
if (CONFIG_BOOLEAN(config_look_input_share)
&& (old_buffer != window->buffer))
{
gui_input_move_to_buffer (old_buffer, window->buffer);
}
hook_signal_send ("buffer_switch",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
}
@@ -608,6 +614,12 @@ gui_window_switch (struct t_gui_window *window)
gui_window_switch_to_buffer (gui_current_window,
gui_current_window->buffer, 1);
if (CONFIG_BOOLEAN(config_look_input_share)
&& (old_window->buffer != window->buffer))
{
gui_input_move_to_buffer (old_window->buffer, window->buffer);
}
}
/*