From ac797eefe7872d482afaa5ea7f322150cab6fae1 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 4 Apr 2012 20:34:06 +0200 Subject: [PATCH] check was wrong --- lib/ace/document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/document.js b/lib/ace/document.js index bfd80de9..67c8a525 100644 --- a/lib/ace/document.js +++ b/lib/ace/document.js @@ -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);