Fixed the 'my editor is hungry and eats my lines'
issue.
This commit is contained in:
parent
8d3e6e7449
commit
6d73a44c9a
1 changed files with 2 additions and 2 deletions
|
|
@ -454,7 +454,7 @@ var Editor =function(renderer, doc) {
|
||||||
indent += 1;
|
indent += 1;
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
if (/[^\s]$/.test(line))
|
if (/[^\s]/.test(line))
|
||||||
minIndent = Math.min(indent, minIndent);
|
minIndent = Math.min(indent, minIndent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue