Fixed an error with empty documents.

This commit is contained in:
Eddy Bruel 2010-12-10 11:35:03 +01:00
commit 6f1f1b1101

View file

@ -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 = [];