1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

core: use first gap for new buffer only if the buffer has no layout number

This commit is contained in:
Sebastien Helleu
2013-12-07 12:45:40 +01:00
parent 4520b0f7ae
commit c82633e9e4
+1
View File
@@ -392,6 +392,7 @@ gui_buffer_insert (struct t_gui_buffer *buffer)
* (if there is not, buffer will be added to the end of list)
*/
if (!pos_buffer
&& (buffer->layout_number == 0)
&& (CONFIG_INTEGER(config_look_buffer_position) == CONFIG_LOOK_BUFFER_POSITION_FIRST_GAP))
{
for (ptr_buffer = gui_buffers; ptr_buffer;