]> granicus.if.org Git - neomutt/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)
commitb48ca167fbe0700e64041ccf8f6ecf1381e03fee
treee53f532ea421fd2bf9a15d9aec295238a4d9bc77
parentc168574f7720df8feb2ee24359de0589b448f7f3
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