From: Guo Rui Date: Tue, 21 Jul 2009 16:29:47 +0000 (+0800) Subject: Correctly pad the caption output. X-Git-Url: https://repo.or.cz/w/screen-lua.git/commitdiff_plain/6d5c28f52645cc28e264c02ba33949ebeecd33ea Correctly pad the caption output. --- diff --git a/src/lua.c b/src/lua.c index 43c412f..365d884 100644 --- a/src/lua.c +++ b/src/lua.c @@ -656,6 +656,9 @@ canvas_update_caption(lua_State *L) if (l > cv->c_xe - cv->c_xs + 1) l = cv->c_xe - cv->c_xs + 1; PutWinMsg(buf, cv->c_xs, l); + l += cv->c_xs; + for (; l <= cv->c_xe; l++) + PUTCHARLP(' '); return 0; }