forked from qt-creator/qt-creator
Changed < for <= in Utils::unCommentSelection to catch cases where there are no characters (only a line end, for example) after the comment start mark.
Ex.: /* void f();*/
This commit is contained in:
@@ -154,7 +154,7 @@ void Utils::unCommentSelection(QPlainTextEdit *edit, const CommentDefinition &de
|
||||
start -= multiLineStartLength;
|
||||
}
|
||||
|
||||
bool hasSelStart = (startPos < startText.length() - multiLineStartLength
|
||||
bool hasSelStart = (startPos <= startText.length() - multiLineStartLength
|
||||
&& isComment(startText,
|
||||
startPos,
|
||||
definition,
|
||||
|
||||
Reference in New Issue
Block a user