diff --git a/docs/notework.txt b/docs/notework.txt index 215c0a5..b459083 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -10,6 +10,8 @@ ______________________________________________________________________ Notes for GoldED+ 1.1.5, /snapshot/ ______________________________________________________________________ ++ READGoToReplyNext work on non JAM message bases + + Win32: Mapped APPS key to Shift+F10 ! DispHdrLocation settings changed to . diff --git a/golded3/geread.cpp b/golded3/geread.cpp index 962826e..0a2e74a 100644 --- a/golded3/geread.cpp +++ b/golded3/geread.cpp @@ -1500,6 +1500,31 @@ void GotoReplyNext() { reader_direction = DIR_NEXT; uint gotolink = AA->Msgn.ToReln(reader_msg->link.next()); + uint msgno = reader_msg->link.to(); + + if (!gotolink && AA->Msgn.ToReln(msgno)) + { + GMsg* tempmsg = (GMsg*)throw_calloc(1, sizeof(GMsg)); + AA->LoadHdr(tempmsg, msgno, false); + + if (tempmsg->link.first() == reader_msg->msgno) + gotolink = tempmsg->link.list(0); + else + { + for (uint i = 0; i < (tempmsg->link.list_max()-1); i++) + if (tempmsg->link.list(i) == reader_msg->msgno) + { + gotolink = tempmsg->link.list(i+1); + break; + } + } + + gotolink = AA->Msgn.ToReln(gotolink); + + ResetMsg(tempmsg); + throw_free(tempmsg); + } + if(gotolink) AA->set_lastread(gotolink); else {