We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ad83b4 commit a90ef27Copy full SHA for a90ef27
1 file changed
src/layer/text.js
@@ -436,6 +436,8 @@ var Text = function(parentEl) {
436
dir: undefined
437
};
438
var lines = this.session.doc.$lines;
439
+ if (!lines) return;
440
+
441
var cursor = this.session.selection.getCursor();
442
var initialIndent = /^\s*/.exec(this.session.doc.getLine(cursor.row))[0].length;
443
var elementIndentLevel = Math.floor(initialIndent / this.tabSize);
0 commit comments