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

buflist: return 0 if buffers are equal in sort function

This is better for symmetry of comparison callback (comparing buffer1 and
buffer2 will give same as comparing buffer2 and bufer1).

Thanks to Simmo Saan for reporting the problem.
This commit is contained in:
Sébastien Helleu
2017-06-06 19:50:47 +02:00
parent 1e22a96a10
commit e09dc5f63b
+1 -1
View File
@@ -320,7 +320,7 @@ buflist_compare_buffers (void *data, struct t_arraylist *arraylist,
return rc;
}
return 1;
return 0;
}
/*