do not keep empty text elements when stopping writing

This commit is contained in:
abakkk 2019-03-06 04:29:46 +01:00
parent b7ae69020a
commit 220bf0143c
1 changed files with 2 additions and 1 deletions

View File

@ -279,6 +279,7 @@ var DrawingArea = new Lang.Class({
}, },
_stopWriting: function() { _stopWriting: function() {
if (this.currentElement.text.length > 0)
this.elements.push(this.currentElement); this.elements.push(this.currentElement);
this.currentElement = null; this.currentElement = null;
this._stopCursorTimeout(); this._stopCursorTimeout();