[javascript mode] minor smart indentation glitch at multiple if else statements without braces #1436
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The following statement is indented the wrong way when doing:
for (var i = 0; i <= mirror.lineCount(); i++) {
mirror.indentLine(i, "smart");
}
if (true) ____if (false) ________alert(1); else ____alert(2);instead of
if (true) ____if (false) ________alert(1); ____else ________alert(2);Keep up the good work... :)
Oh, I forgot to mention that is behavior happens at CodeMirror 3.11 (and at least 2.36 too).