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:
parent
cd32dc248c
commit
284ee2a9a4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue