From 7d4ec6f30828a9ec5f323753161f0139f0cf09d7 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Tue, 11 Jun 2002 09:31:50 +0000 Subject: [PATCH] Fixed highlighting when MsgListHeader is active --- docs/notework.txt | 2 ++ golded3/gemlst.cpp | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/docs/notework.txt b/docs/notework.txt index ce3fbad..c2e13d4 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -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). diff --git a/golded3/gemlst.cpp b/golded3/gemlst.cpp index 42503a4..a16632e 100644 --- a/golded3/gemlst.cpp +++ b/golded3/gemlst.cpp @@ -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::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();