]> granicus.if.org Git - mutt/commitdiff
The commands "read-thread" (^R) and "read-subthread" (Esc-R) do not
authorAnatoly Vorobey <mellon@pobox.com>
Wed, 3 Sep 2003 17:09:09 +0000 (17:09 +0000)
committerAnatoly Vorobey <mellon@pobox.com>
Wed, 3 Sep 2003 17:09:09 +0000 (17:09 +0000)
honor the resolve variable (don't advance cursor after marking the
thread/subthread as read), which, to me at least, is a nuisance.

curs_main.c

index 4506c29c297ff3eb32dbdde2e4ef38e80a77d0d2..1c200969291b1348901c85e43b0fbafc9e994ef9 100644 (file)
@@ -1917,8 +1917,9 @@ CHECK_IMAP_ACL(IMAP_ACL_SEEN);
        {
          if (option (OPTRESOLVE))
          {
-           if ((menu->oldcurrent = ci_next_undeleted (menu->current)) == -1)
-             menu->oldcurrent = menu->current;
+           if ((menu->current = (op == OP_MAIN_READ_THREAD ? 
+                                 mutt_next_thread (CURHDR) : mutt_next_subthread (CURHDR))) == -1)
+             menu->current = menu->oldcurrent;
          }
          menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
        }