Fixed marks and lastread pointers for move command

This commit is contained in:
Ianos Gnatiuc 2006-01-15 09:06:36 +00:00
parent e3b8ef3ef9
commit 819675bab2
2 changed files with 7 additions and 14 deletions

View File

@ -10,6 +10,10 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________
- Fixed marks and lastread pointers for move command.
- Win9x: Fixed waiting for key pressing before area scanning.
= Snapshot for the January 14, 2006.
- Prevent crash of golded while formatting status line.

View File

@ -635,7 +635,7 @@ void CmfMsgs(GMsg* msg, bool torecycle)
// Delete original msg if moved
if(mode == MODE_MOVE) {
msg->msgno = msgno;
AA->DeleteMsg(msg, DIR_PREV);
AA->DeleteMsg(msg, torecycle ? reader_direction : DIR_PREV);
AA->PMrk.Del(msg->msgno);
}
@ -660,16 +660,11 @@ void CmfMsgs(GMsg* msg, bool torecycle)
else
LoadCharset("N/A", "N/A");
if(do_mode == MODE_MARKED) {
if(do_mode == MODE_MARKED)
{
if(cmf == MODE_MOVE)
AA->Mark.ResetAll();
}
else {
if(cmf == MODE_MOVE) {
AA->Mark.Del(msg->msgno);
AA->PMrk.Del(msg->msgno);
}
}
w_info(NULL);
@ -681,15 +676,9 @@ void CmfMsgs(GMsg* msg, bool torecycle)
void CopyMoveForward(bool torecycle)
{
uint lastread = reader_msg->msgno;
AA->set_lastread(AA->Msgn.ToReln(lastread, AA->lastread()));
AA->attr().hex0();
if(AA->Msgn.Count())
CmfMsgs(reader_msg, torecycle);
AA->set_lastread(AA->Msgn.ToReln(lastread, AA->lastread()));
}