Skip to content

Commit ebbbdc6

Browse files
committed
remove annoying extra space
1 parent ca63808 commit ebbbdc6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/src/processing/app/Editor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2119,8 +2119,9 @@ protected void handleCommentUncomment() {
21192119
boolean commented = true;
21202120
for (int i = startLine; commented && (i <= stopLine); i++) {
21212121
String lineText = textarea.getLineText(i).trim();
2122-
if (lineText.length() == 0)
2122+
if (lineText.length() == 0) {
21232123
continue; //ignore blank lines
2124+
}
21242125
commented = lineText.startsWith(prefix);
21252126
}
21262127

@@ -2150,7 +2151,7 @@ protected void handleCommentUncomment() {
21502151
// add a comment
21512152
location = textarea.getLineStartOffset(line) + lso;
21522153
textarea.select(location, location);
2153-
textarea.setSelectedText(prefix + " "); //Add a '// '
2154+
textarea.setSelectedText(prefix);
21542155
}
21552156
}
21562157
// Subtract one from the end, otherwise selects past the current line.

0 commit comments

Comments
 (0)