diff --git a/core/text_view.js b/core/text_view.js index 74b622ba..772621db 100644 --- a/core/text_view.js +++ b/core/text_view.js @@ -179,6 +179,10 @@ TextView.prototype.setText = function (text, redraw) { }; TextView.prototype.clearText = function () { + if (this.text) { + this.setText(' '.repeat(this.text.length)); + } + this.setText(''); };