forked from qt-creator/qt-creator
Comments starting at end of a line can not be uncommented
Task-number: QTCREATORBUG-1177
This commit is contained in:
@@ -70,7 +70,7 @@ void Utils::unCommentSelection(QPlainTextEdit *edit)
|
|||||||
start -= 2;
|
start -= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasSelStart = (startPos < startText.length() - 2
|
bool hasSelStart = (startPos < startText.length() - 1
|
||||||
&& startText.at(startPos) == QLatin1Char('/')
|
&& startText.at(startPos) == QLatin1Char('/')
|
||||||
&& startText.at(startPos+1) == QLatin1Char('*'));
|
&& startText.at(startPos+1) == QLatin1Char('*'));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user