Commit 495b7bff authored by mae's avatar mae
Browse files

Comments starting at end of a line can not be uncommented

Task-number: QTCREATORBUG-1177
parent 87b3755b
...@@ -70,7 +70,7 @@ void Utils::unCommentSelection(QPlainTextEdit *edit) ...@@ -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('*'));
......
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