From 8aa42342a2184af135eeb8ef6b55b77d642dab88 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 28 Jan 2017 12:48:04 -0700 Subject: [PATCH] Fix setText('')/clearText() issue with text views --- core/text_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/text_view.js b/core/text_view.js index e51309da..f1b3ee7e 100644 --- a/core/text_view.js +++ b/core/text_view.js @@ -151,7 +151,7 @@ TextView.prototype.redraw = function() { // and there is no actual text (e.g. save SGR's and processing) // if(!this.hasDrawnOnce) { - if(!this.text) { + if(_.isUndefined(this.text)) { return; } }