File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments