« get me outta code hell

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/Label.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/Label.js')
-rw-r--r--ui/Label.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/Label.js b/ui/Label.js
index faeee98..e320574 100644
--- a/ui/Label.js
+++ b/ui/Label.js
@@ -13,7 +13,7 @@ module.exports = class Label extends DisplayElement {
   }
 
   fixLayout() {
-    this.w = this.text.length
+    this.w = ansi.measureColumns(this.text)
   }
 
   drawTo(writable) {