]> granicus.if.org Git - mutt/commit
Decouple the sidebar from the Buffy list.
authorKevin McCarthy <kevin@8t8.us>
Sat, 2 Jul 2016 19:22:51 +0000 (12:22 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sat, 2 Jul 2016 19:22:51 +0000 (12:22 -0700)
commit235f6ae89562d7db605e83b23e00ca228eb77cd7
treee53f532ea421fd2bf9a15d9aec295238a4d9bc77
parentdc14aaee4368093a4e688a685d2e16db99441dbb
Decouple the sidebar from the Buffy list.

Change the sidebar to use an array of SBENTRY* instead.  Move the
"is_hidden" into SBENTRY.  Remove the added "prev" pointer from BUFFY.

This way, sorting the sidebar doesn't affect the BUFFY list order, and
we don't need elements inside BUFFY just for the sidebar presentation.

Fix sidebar-next for the case where the mailboxes are unsorted and
$sidebar_new_mail_only is set.  Change sorting not to clump hidden
mailboxes at the bottom, instead simply skip over hidden mailboxes in
sidebar-next/prev.
buffy.h
sidebar.c