mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 09:39:19 +01:00
Uncomment identation fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user