libsmartcols: don't try to align title if it's more that term

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko 2016-01-21 17:25:15 +01:00
parent cd32dc248c
commit 284ee2a9a4
1 changed files with 3 additions and 0 deletions

View File

@ -557,6 +557,9 @@ static void print_title(struct libscols_table *tb)
len = strlen(tb->title);
if (len > tb->termwidth)
len = tb->termwidth;
DBG(TAB, ul_debugobj(tb, "printing title"));
if (tb->title_color)