libsmartcols: fix title aligning to center
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
284ee2a9a4
commit
7bc451694f
|
@ -574,7 +574,7 @@ static void print_title(struct libscols_table *tb)
|
|||
|
||||
break;
|
||||
case SCOLS_TITLE_CENTER:
|
||||
for (i = 0; i <= (tb->termwidth - len) / 2; i++)
|
||||
for (i = 0; i < (tb->termwidth - len) / 2; i++)
|
||||
fputs(tb->symbols->title_wrap, tb->out);
|
||||
|
||||
fputs(tb->title, tb->out);
|
||||
|
|
Loading…
Reference in New Issue