READGoToReplyNext work on non JAM message bases

This commit is contained in:
Ianos Gnatiuc 2005-11-12 02:24:37 +00:00
parent 850228ed34
commit e41f5bc936
2 changed files with 27 additions and 0 deletions

View File

@ -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 <No/Yes/Always> <Right/Center>.

View File

@ -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 {