[Aptitude-svn-commit] r3388 - in branches/aptitude-0.3/aptitude: . src/vscreen
Daniel Burrows
dburrows@costa.debian.org
Tue, 07 Jun 2005 19:25:24 +0000
Author: dburrows
Date: Tue Jun 7 19:25:22 2005
New Revision: 3388
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/fragment.cc
Log:
Finally fix the 'indentation is always black' bug
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Tue Jun 7 19:25:22 2005
@@ -1,5 +1,10 @@
2005-06-07 Daniel Burrows <dburrows@debian.org>
+ * src/vscreen/fragment.cc:
+
+ Take the style of an indentbox's formatting from the surrounding
+ context.
+
* src/ui.cc:
Use %N in one appropriate place.
Modified: branches/aptitude-0.3/aptitude/src/vscreen/fragment.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/fragment.cc (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/fragment.cc Tue Jun 7 19:25:22 2005
@@ -776,6 +776,9 @@
fragment_line firstprepend(firstindent, ' ');
fragment_line restprepend(restindent, ' ');
+ firstprepend.apply_style(st);
+ restprepend.apply_style(st);
+
size_t child_firstw=firstw>=firstindent?firstw-firstindent:0;
size_t child_restw=restw>=restindent?restw-restindent:0;