Uncomment identation fix

This commit is contained in:
Sanchit Kapoor
2016-02-19 03:38:33 +05:30
parent d3a0e98fd3
commit 51de144d0a

View File

@@ -2052,11 +2052,7 @@ public abstract class Editor extends JFrame implements RunnerListener {
continue; //ignore blank lines
if (commented) {
// remove a comment
if (lineText.trim().startsWith(prefix + " ")) {
textarea.select(location, location + prefixLen + 1);
} else {
textarea.select(location, location + prefixLen);
}
textarea.select(location, location + prefixLen);
textarea.setSelectedText("");
} else {
// add a comment