Skip to content

Commit

Permalink
fix: stream borderless fix (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis authored and gajus committed Aug 15, 2019
1 parent 117f902 commit db1ad68
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/createStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@ const append = (row, columnWidthIndex, config) => {
return drawRow(literalRow, config.border);
}).join('');

let output;
let output = '';
const bottom = drawBorderBottom(columnWidthIndex, config.border);

output = '\r\u001B[K';
if (bottom !== '\n') {
output = '\r\u001B[K';
}

output += drawBorderJoin(columnWidthIndex, config.border);
output += body;
output += drawBorderBottom(columnWidthIndex, config.border);
output += bottom;

output = _.trimEnd(output);

Expand Down

0 comments on commit db1ad68

Please sign in to comment.