Fixed highlighting when MsgListHeader is active

This commit is contained in:
Alexander S. Aganichev 2002-06-11 09:31:50 +00:00
parent 2ccc0cdd69
commit 7d4ec6f308
2 changed files with 17 additions and 0 deletions

View File

@ -12,6 +12,8 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________
- Fixed names highlighting in the header when MsgListHeader is active.
+ JAMSMAPIHIGHWATER is now active by default if "areafile fidoconfig"
is specifyed (not tested).

View File

@ -216,6 +216,10 @@ void GMsgList::do_delayed() {
ReadMlst(index);
AA->LoadMsg(&msg, mlst[index]->msgno, CFG->dispmargin-(int)CFG->switches.get(disppagebar));
mlst[index]->goldmark = goldmark;
if(mlst[index]->high & MLST_HIGH_FROM)
msg.attr.fmu1();
if(mlst[index]->high & MLST_HIGH_TO)
msg.attr.tou1();
int mlstwh = whandle();
HeaderView->Use(AA, &msg);
HeaderView->Paint();
@ -690,6 +694,17 @@ void GThreadlist::do_delayed() {
// Update header and statusline
if(AA->Msglistheader()) {
AA->LoadMsg(&msg, list[index].msgno, CFG->dispmargin-(int)CFG->switches.get(disppagebar));
for(std::vector<Node>::iterator x = CFG->username.begin(); x != CFG->username.end(); x++) {
if(strieql(msg.By(), x->name)) {
msg.attr.fmu1();
}
if(strieql(msg.to, x->name)) {
msg.attr.tou1();
}
}
if(strieql(msg.to, AA->Internetaddress())) {
msg.attr.tou1();
}
int mlstwh = whandle();
HeaderView->Use(AA, &msg);
HeaderView->Paint();