[Aptitude-devel] r3167 - in branches/aptitude-0.3/aptitude: . src/vscreen
Daniel Burrows
dburrows@costa.debian.org
Thu, 28 Apr 2005 02:22:10 +0000
Author: dburrows
Date: Thu Apr 28 02:22:07 2005
New Revision: 3167
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/vs_multiplex.cc
Log:
Fix the tab display.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Thu Apr 28 02:22:07 2005
@@ -1,5 +1,11 @@
2005-04-27 Daniel Burrows <dburrows@debian.org>
+ * src/vscreen/vs_multiplex.cc:
+
+ Use the correct addstr() variant; the chstring variant is a bit
+ broken right now :( (and of course it doesn't preserve
+ attributes).
+
* src/vscreen/testvscreen.cc:
Enable tabs in the test program.
Modified: branches/aptitude-0.3/aptitude/src/vscreen/vs_multiplex.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vs_multiplex.cc (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vs_multiplex.cc Thu Apr 28 02:22:07 2005
@@ -141,7 +141,7 @@
if(i->title.size()>thisw)
{
- addnstr(i->title, thisw);
+ addnstr(i->title.c_str(), thisw);
startx+=thisw;
}
@@ -156,7 +156,7 @@
++j;
}
- addnstr(i->title, i->title.size());
+ addnstr(i->title.c_str(), i->title.size());
j+=i->title.size();
while(j<thisw)