]> granicus.if.org Git - neomutt/commit
Various fixes to the sidebar logic.
authorKevin McCarthy <kevin@8t8.us>
Sat, 4 Jun 2016 18:32:09 +0000 (11:32 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sat, 4 Jun 2016 18:32:09 +0000 (11:32 -0700)
commit61faa2a86de614b2bee6decb426003246c5fd8c0
tree8e400435254be9b8f70f58d9c4c2159d6004612a
parent3cd3232a8530844b5a72dc435b28c55ccbee10d0
Various fixes to the sidebar logic.

Use strfcpy instead of strncpy.  The current logic could write past
the end of the buffer.

Don't mess with BUFFY next pointers during removal.  The
mutt_parse_mailboxes() is fine, but this is still not something that
should be done inside sidebar.c.

On removal, set next->prev since we can.

Fix unmailboxes logic:
  * only fix the prev pointers once.
  * if we unmailbox the open mailbox, set it to NULL.

Lastly, flag a redraw on mailboxes/unmailboxes.
sidebar.c