[Aptitude-svn-commit] r3793 - in branches/aptitude-0.3/aptitude: . src

Daniel Burrows dburrows at costa.debian.org
Tue Aug 9 22:02:40 UTC 2005


Author: dburrows
Date: Tue Aug  9 22:02:37 2005
New Revision: 3793

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/solution_screen.cc
Log:
Fix solution item highlighting.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Tue Aug  9 22:02:37 2005
@@ -1,5 +1,9 @@
 2005-08-09  Daniel Burrows  <dburrows at debian.org>
 
+	* src/solution_screen.cc:
+
+	  Fix item highlighting.
+
 	* src/vscreen/vs_tree.cc:
 
 	  Include the highlight status in the style passed to

Modified: branches/aptitude-0.3/aptitude/src/solution_screen.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/solution_screen.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/solution_screen.cc	Tue Aug  9 22:02:37 2005
@@ -256,7 +256,13 @@
 	++x;
       }
 
-    win->addnstr(righttext, width-startx);
+    unsigned int rightloc = 0;
+    while(x < width && rightloc < righttext.size())
+      {
+	win->addch(righttext[rightloc]);
+	++rightloc;
+	++x;
+      }
   }
 };
 



More information about the Aptitude-svn-commit mailing list