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

Daniel Burrows dburrows at costa.debian.org
Thu Sep 22 19:46:18 UTC 2005


Author: dburrows
Date: Thu Sep 22 19:46:15 2005
New Revision: 4181

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/vs_staticitem.cc
Log:
Make vs_staticitem really use the whole screen width.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Thu Sep 22 19:46:15 2005
@@ -1,5 +1,10 @@
 2005-09-22  Daniel Burrows  <dburrows at debian.org>
 
+	* src/vscreen/vs_staticitem.cc:
+
+	  Make vs_staticitem really use the whole width (it was using one
+	  character less).
+
 	* src/solution_screen.cc:
 
 	  Add more verbiage to unresolved soft deps when they show up as

Modified: branches/aptitude-0.3/aptitude/src/vscreen/vs_staticitem.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vs_staticitem.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vs_staticitem.cc	Thu Sep 22 19:46:15 2005
@@ -32,15 +32,15 @@
   win->move(y,0);
   for(int i=0; i<basex && i<width; i++)
     win->addch(' ');
-  if(basex>width)
+  if(basex >= width)
     return;
 
-  win->addnstr(name.c_str(), width-basex-1);
-  if((basex+name.size())>(unsigned) width)
+  win->addnstr(name.c_str(), width - basex);
+  if((basex + name.size()) >= (unsigned) (width - basex))
     return;
 
   win->attroff(A_BOLD);
-  win->addnstr(value.c_str(), width-basex-name.size()-1);
-  for(int newx=basex+name.size()+value.size(); newx<width; newx++)
+  win->addnstr(value.c_str(), width - basex - name.size());
+  for(int newx = basex + name.size() + value.size(); newx < width; newx++)
     win->addch(' ');
 }



More information about the Aptitude-svn-commit mailing list