diff options
-rw-r--r-- | package-lock.json | 2 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | ui/WrapLabel.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/package-lock.json b/package-lock.json index e2796f0..54eefb0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "tui-lib", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8d4a1d3..3a10b24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tui-lib", - "version": "0.3.0", + "version": "0.3.1", "description": "terminal ui library", "main": "index.js", "repository": "https://notabug.org/towerofnix/tui-lib.git", diff --git a/ui/WrapLabel.js b/ui/WrapLabel.js index d40b29d..d621a49 100644 --- a/ui/WrapLabel.js +++ b/ui/WrapLabel.js @@ -29,7 +29,7 @@ module.exports = class WrapLabel extends Label { return [] } - return wrap(this.text, this.w).map(l => l.trim()) + return wrap(this.text, this.w - 1).map(l => l.trim()) } get h() { |