Fixed the 'my editor is hungry and eats my lines'

issue.
This commit is contained in:
Eddy Bruel 2010-12-02 15:37:17 +01:00
commit 6d73a44c9a

View file

@ -454,7 +454,7 @@ var Editor =function(renderer, doc) {
indent += 1;
else
break;
if (/[^\s]$/.test(line))
if (/[^\s]/.test(line))
minIndent = Math.min(indent, minIndent);
}