summaryrefslogtreecommitdiff
path: root/src/plugins/buflist
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-06-06 19:50:47 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-06-06 19:50:47 +0200
commite09dc5f63b25266c282b187bce88ea984a13106b (patch)
tree11a99474912426e5181de2cb946d2e1d9c869b3f /src/plugins/buflist
parent1e22a96a1001d11af0a40f9731bd4ee9822d91a0 (diff)
downloadweechat-e09dc5f63b25266c282b187bce88ea984a13106b.zip
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.
Diffstat (limited to 'src/plugins/buflist')
-rw-r--r--src/plugins/buflist/buflist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/buflist/buflist.c b/src/plugins/buflist/buflist.c
index 42ff7c687..5e87e205c 100644
--- a/src/plugins/buflist/buflist.c
+++ b/src/plugins/buflist/buflist.c
@@ -320,7 +320,7 @@ buflist_compare_buffers (void *data, struct t_arraylist *arraylist,
return rc;
}
- return 1;
+ return 0;
}
/*