]> granicus.if.org Git - neomutt/commit
Do not interrupt switch fallthrough 1285/head
authorAustin Ray <austin@austinray.io>
Thu, 5 Jul 2018 03:32:23 +0000 (23:32 -0400)
committerAustin Ray <austin@austinray.io>
Thu, 5 Jul 2018 03:32:23 +0000 (23:32 -0400)
commit98aad9c3f1fb281e35a966d4a9b01b60db402e7a
treebefd6133009b83c7eb46a8d181b2cb380df4f1ad
parent9e927affe3a021175f354af5fa01d22657c20585
Do not interrupt switch fallthrough

Commit e85c735 introduced the `<check-stats>` function, designated by
`OP_CHECK_STATS`.

This had been inserted below `OP_MAIN_CHANGE_VFOLDER`, which is
`change-vfolder`'s designation; however, `OP_MAIN_CHANGE_VFOLDER` relies
on C's switch fallthrough logic to execute. As a result,
`change-vfolder` executed `check-stats`'s logic instead of the correct
logic.

This commit moves `OP_CHECK_STATS` to above the #ifdef that
`OP_MAIN_CHANGE_VFOLDER` is defined in.
curs_main.c