diff options
Diffstat (limited to 'node_modules/boxen/index.js')
-rw-r--r-- | node_modules/boxen/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/boxen/index.js b/node_modules/boxen/index.js index 2233e3d7b..0fe96a5a4 100644 --- a/node_modules/boxen/index.js +++ b/node_modules/boxen/index.js @@ -118,7 +118,7 @@ module.exports = (text, opts) => { const padWidth = (columns - contentWidth) / 2; marginLeft = PAD.repeat(padWidth); } else if (opts.float === 'right') { - const padWidth = Math.max(columns - contentWidth - 2, 0); + const padWidth = Math.max(columns - contentWidth - margin.right - 2, 0); marginLeft = PAD.repeat(padWidth); } |