« get me outta code hell

don't let WrapLabel text extend one letter too far - tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/ui/WrapLabel.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-07-16 14:14:21 -0300
committerFlorrie <towerofnix@gmail.com>2020-07-16 14:15:07 -0300
commitef66a02f238bedccdefd2a5e60ee29c1325c51aa (patch)
tree71aeff5d99b14b18936ed6977fd8cb12357d5691 /ui/WrapLabel.js
parent4b74578923e02a7a56a45c5bb7b505e95bbede08 (diff)
don't let WrapLabel text extend one letter too far
I Am Very Good At Managing Npm Repositories
Diffstat (limited to 'ui/WrapLabel.js')
-rw-r--r--ui/WrapLabel.js2
1 files changed, 1 insertions, 1 deletions
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() {