Fixed marks and lastread pointers for move command
This commit is contained in:
parent
e3b8ef3ef9
commit
819675bab2
@ -10,6 +10,10 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
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.
|
= Snapshot for the January 14, 2006.
|
||||||
|
|
||||||
- Prevent crash of golded while formatting status line.
|
- Prevent crash of golded while formatting status line.
|
||||||
|
@ -635,7 +635,7 @@ void CmfMsgs(GMsg* msg, bool torecycle)
|
|||||||
// Delete original msg if moved
|
// Delete original msg if moved
|
||||||
if(mode == MODE_MOVE) {
|
if(mode == MODE_MOVE) {
|
||||||
msg->msgno = msgno;
|
msg->msgno = msgno;
|
||||||
AA->DeleteMsg(msg, DIR_PREV);
|
AA->DeleteMsg(msg, torecycle ? reader_direction : DIR_PREV);
|
||||||
AA->PMrk.Del(msg->msgno);
|
AA->PMrk.Del(msg->msgno);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -660,16 +660,11 @@ void CmfMsgs(GMsg* msg, bool torecycle)
|
|||||||
else
|
else
|
||||||
LoadCharset("N/A", "N/A");
|
LoadCharset("N/A", "N/A");
|
||||||
|
|
||||||
if(do_mode == MODE_MARKED) {
|
if(do_mode == MODE_MARKED)
|
||||||
|
{
|
||||||
if(cmf == MODE_MOVE)
|
if(cmf == MODE_MOVE)
|
||||||
AA->Mark.ResetAll();
|
AA->Mark.ResetAll();
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
if(cmf == MODE_MOVE) {
|
|
||||||
AA->Mark.Del(msg->msgno);
|
|
||||||
AA->PMrk.Del(msg->msgno);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
w_info(NULL);
|
w_info(NULL);
|
||||||
|
|
||||||
@ -681,15 +676,9 @@ void CmfMsgs(GMsg* msg, bool torecycle)
|
|||||||
|
|
||||||
void CopyMoveForward(bool torecycle)
|
void CopyMoveForward(bool torecycle)
|
||||||
{
|
{
|
||||||
uint lastread = reader_msg->msgno;
|
|
||||||
|
|
||||||
AA->set_lastread(AA->Msgn.ToReln(lastread, AA->lastread()));
|
|
||||||
|
|
||||||
AA->attr().hex0();
|
AA->attr().hex0();
|
||||||
if(AA->Msgn.Count())
|
if(AA->Msgn.Count())
|
||||||
CmfMsgs(reader_msg, torecycle);
|
CmfMsgs(reader_msg, torecycle);
|
||||||
|
|
||||||
AA->set_lastread(AA->Msgn.ToReln(lastread, AA->lastread()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user