diff --git a/src/styled/table.ts b/src/styled/table.ts index a08aa14..cab520d 100644 --- a/src/styled/table.ts +++ b/src/styled/table.ts @@ -198,7 +198,7 @@ class Table { col.width = col.maxWidth! } // terminal width - const maxWidth = stdtermwidth + const maxWidth = stdtermwidth - 2 // truncation logic const shouldShorten = () => { // don't shorten if full mode @@ -259,7 +259,7 @@ class Table { // print header dividers let dividers = options.rowStart for (const col of columns) { - const divider = ''.padEnd(col.maxWidth! - 1, '─') + ' ' + const divider = ''.padEnd(col.width! - 1, '─') + ' ' dividers += divider.padEnd(col.width!) } options.printLine(chalk.bold(dividers))