[Aptitude-svn-commit] r3604 - in branches/aptitude-0.3/aptitude: . src
Daniel Burrows
dburrows@costa.debian.org
Mon Jul 4 14:41:35 UTC 2005
Author: dburrows
Date: Mon Jul 4 14:41:33 2005
New Revision: 3604
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/load_config.cc
Log:
Fix parsing colors.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Mon Jul 4 14:41:33 2005
@@ -2,6 +2,11 @@
* src/load_config.cc:
+ Pass Value to parse_color, not Tag; setting colors in the
+ configuration file now works.
+
+ * src/load_config.cc:
+
Don't go into an infinite loop trying to parse text attributes.
2005-07-03 Daniel Burrows <dburrows@debian.org>
Modified: branches/aptitude-0.3/aptitude/src/load_config.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/load_config.cc (original)
+++ branches/aptitude-0.3/aptitude/src/load_config.cc Mon Jul 4 14:41:33 2005
@@ -116,9 +116,9 @@
for(Configuration::Item const *j=i->Child; j; j=j->Next)
{
if(!strcasecmp(j->Tag.c_str(), "fg"))
- curr.set_fg(parse_color(j->Tag));
+ curr.set_fg(parse_color(j->Value));
else if(!strcasecmp(j->Tag.c_str(), "bg"))
- curr.set_bg(parse_color(j->Tag));
+ curr.set_bg(parse_color(j->Value));
else
{
void (style::*f)(attr_t)=NULL;
More information about the Aptitude-svn-commit
mailing list