Skip to content
Snippets Groups Projects
Commit e7ddd2b8 authored by Leandro Melo's avatar Leandro Melo
Browse files

Changed < for <= in Utils::unCommentSelection to catch cases where there are...

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();*/
parent 4d26f334
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment