« get me outta code hell

support mixed textAttributes & ANSI format labels - 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:05:54 -0300
committerFlorrie <towerofnix@gmail.com>2020-07-16 14:05:54 -0300
commit154dd2f631edc9f46ff73e80b54d48f0ccdf049a (patch)
treeb170d47d5f166152a16d83d2584e98ad24da5f1f /ui/WrapLabel.js
parent7f0579fc6e5771bbcad36591ab54119c4fe66dbd (diff)
support mixed textAttributes & ANSI format labels
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 7036908..d40b29d 100644
--- a/ui/WrapLabel.js
+++ b/ui/WrapLabel.js
@@ -20,7 +20,7 @@ module.exports = class WrapLabel extends Label {
     const lines = this.getWrappedLines()
     for (let i = 0; i < lines.length; i++) {
       writable.write(ansi.moveCursor(this.absTop + i, this.absLeft))
-      writable.write(lines[i])
+      writable.write(this.processFormatting(lines[i]))
     }
   }