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:
Leandro Melo
2010-05-06 11:34:11 +02:00
parent 4d26f334e2
commit e7ddd2b80b

View File

@@ -154,7 +154,7 @@ void Utils::unCommentSelection(QPlainTextEdit *edit, const CommentDefinition &de
start -= multiLineStartLength; start -= multiLineStartLength;
} }
bool hasSelStart = (startPos < startText.length() - multiLineStartLength bool hasSelStart = (startPos <= startText.length() - multiLineStartLength
&& isComment(startText, && isComment(startText,
startPos, startPos,
definition, definition,