Commit e7ddd2b8 authored by Leandro Melo's avatar Leandro Melo

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
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment