[procps] [PATCH 3/7] Fix highlighting problem in top

  • From: Jan Görig <jgorig@xxxxxxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Thu, 16 Dec 2010 11:15:58 +0100

Author: Paolo Pantaleo <paolopantaleo@xxxxxxxxx>
Bug-Debian: http://bugs.debian.org/351065
---
 top.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/top.c b/top.c
index b3f69d7..a7496b6 100644
--- a/top.c
+++ b/top.c
@@ -3036,9 +3036,10 @@ static proc_t **summary_show (void)
       snprintf(_z, sizeof(_z), f, ## va);                                    \
       snprintf(cbuf, sizeof(cbuf), "%s%s%s",                                 \
          q->capclr_rowhigh,                                                  \
-         _z,                                                                 \
+         _z+advance,                                                         \
          !(CHKw(q, Show_HIROWS) && 'R' == p->state) ? q->capclr_rownorm : "" \
       );                                                                     \
+      advance=0;                                                             \
       pad += q->len_rowhigh;                                                 \
       if (!(CHKw(q, Show_HIROWS) && 'R' == p->state)) pad += q->len_rownorm; \
    }                                                                         \
-- 
1.7.3.3


Other related posts:

  • » [procps] [PATCH 3/7] Fix highlighting problem in top - Jan Görig