Skip to content

Commit 34c5a63

Browse files
committed
Merge pull request #4313 from DarkPrince304/uncommentFix
Uncomment identation fix #4249
2 parents 7fbd4a1 + d3bea24 commit 34c5a63

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

app/src/processing/app/ui/Editor.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,11 +2082,7 @@ protected void handleCommentUncomment() {
20822082
continue; //ignore blank lines
20832083
if (commented) {
20842084
// remove a comment
2085-
if (lineText.trim().startsWith(prefix + " ")) {
2086-
textarea.select(location, location + prefixLen + 1);
2087-
} else {
2088-
textarea.select(location, location + prefixLen);
2089-
}
2085+
textarea.select(location, location + prefixLen);
20902086
textarea.setSelectedText("");
20912087
} else {
20922088
// add a comment

0 commit comments

Comments
 (0)