From: Micah Cowan Date: Fri, 20 Feb 2009 07:46:36 +0000 (-0800) Subject: Don't trim the trailing spaces from %-w ! X-Git-Url: https://repo.or.cz/w/screen-lua.git/commitdiff_plain/35804d79c8a3ee7b2447e4289511c6345e048845 Don't trim the trailing spaces from %-w ! --- diff --git a/src/process.c b/src/process.c index 5318b8d..ee2f915 100644 --- a/src/process.c +++ b/src/process.c @@ -5334,11 +5334,7 @@ int where; { int rend = -1; if (pp - wtab == where && ss == buf) - { - ss = s; - if (flags & 8) - break; - } + ss = s; if ((p = *pp) == 0) continue; if ((flags & 1) && display && p == D_fore) @@ -5368,7 +5364,11 @@ int where; AddWinMsgRend(s, rend); sprintf(s, "%d", p->w_number); if (p->w_number == where) - ss = s; + { + ss = s; + if (flags & 8) + break; + } s += strlen(s); if (display && p == D_fore) *s++ = '*';