check was wrong

This commit is contained in:
Fabian Jakobs 2012-04-04 20:34:06 +02:00
commit ac797eefe7

View file

@ -178,7 +178,7 @@ var Document = function(text) {
position = this.$clipPosition(position);
if (this.getLength() <= 1)
if (this.getLength() >= 1)
this.$detectNewLine(text);
var lines = this.$split(text);