Fixed an error with empty documents.
This commit is contained in:
parent
f222d0e649
commit
6f1f1b1101
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ var Range = require("./range");
|
|||
var Document = function(text, mode) {
|
||||
|
||||
this.modified = true;
|
||||
this.lines = [];
|
||||
this.lines = [""];
|
||||
this.selection = new Selection(this);
|
||||
this.$breakpoints = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue