]> granicus.if.org Git - neomutt/commit
Fix the sidebar TopIndex and BotIndex when $sidebar_new_mail_only is set.
authorKevin McCarthy <kevin@8t8.us>
Thu, 7 Jul 2016 19:00:37 +0000 (12:00 -0700)
committerKevin McCarthy <kevin@8t8.us>
Thu, 7 Jul 2016 19:00:37 +0000 (12:00 -0700)
commite31d4945cb0ef3b32e410070bec2b264a299969e
treee20ee3e9dfbdfb8fa9c6b6b2a8997275ad8b69de
parent0585a72080881fddefa9479796e010f14f243885
Fix the sidebar TopIndex and BotIndex when $sidebar_new_mail_only is set.

When set, some of the entries can be hidden, so a simple division by
page_size to find the correct top/bottom isn't correct.

Instead, manually partition into groups of page_size visible entries
and set top and bottom based on the interval around the highlighted
entry.
sidebar.c