« 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/Pane.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/Pane.js')
-rw-r--r--ui/Pane.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/Pane.js b/ui/Pane.js
index 4e08c55..b33a1b7 100644
--- a/ui/Pane.js
+++ b/ui/Pane.js
@@ -86,7 +86,7 @@ module.exports = class Pane extends DisplayElement {
 
     const pane = new Pane()
     pane.frameColor = ansi.C_WHITE
-    pane.w = text.length + 2
+    pane.w = ansi.measureColumns(text) + 2
     pane.h = 3
     parent.addChild(pane)