« 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/Sprite.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/Sprite.js')
-rw-r--r--ui/Sprite.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/Sprite.js b/ui/Sprite.js
index 62b0172..701f1b8 100644
--- a/ui/Sprite.js
+++ b/ui/Sprite.js
@@ -60,7 +60,7 @@ module.exports = class Sprite extends DisplayElement {
   }
 
   get textureWidth() {
-    return Math.max(...this.texture.map(row => row.length))
+    return Math.max(...this.texture.map(row => ansi.measureColumns(row)))
   }
 
   get textureHeight() {