summaryrefslogtreecommitdiffstats
path: root/curs_main.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-04 19:15:10 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-04 19:15:10 +0000
commit4d6b5611ef0211369f3011e357d65573cf5ea73b (patch)
tree80d753456fa56e077299b237cf007f24fcd9b031 /curs_main.c
parenta4923c57362e9544ab3750ac6fa3df47757440eb (diff)
[unstable] fix next-unread plus collapsing.
Diffstat (limited to 'curs_main.c')
-rw-r--r--curs_main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/curs_main.c b/curs_main.c
index ac958fdc..d314e806 100644
--- a/curs_main.c
+++ b/curs_main.c
@@ -1141,7 +1141,14 @@ int mutt_index_menu (void)
if (CUR->collapsed)
{
- if (op == OP_MAIN_NEXT_UNREAD || op == OP_MAIN_PREV_UNREAD || UNREAD(CUR) == 1)
+ if ((op == OP_MAIN_NEXT_UNREAD || op == OP_MAIN_PREV_UNREAD) &&
+ UNREAD (CUR))
+ {
+ menu->current = i;
+ break;
+ }
+ if ((op == OP_MAIN_NEXT_NEW || op == OP_MAIN_PREV_NEW) &&
+ UNREAD (CUR) == 1)
{
menu->current = i;
break;