Commit 7a24da8a authored by Petar Perisin's avatar Petar Perisin

Clear formatting if there is no number

Task-number: QTCREATORBUG-10132
Change-Id: Ib0f6deac4d66273a1a2cc59d397134588fbd3032
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 967cebce
......@@ -115,6 +115,11 @@ QList<StringFormatPair> AnsiEscapeCodeHandler::parseText(const QString &text,
}
strippedText.remove(0, 1);
if (numbers.isEmpty()) {
charFormat = defaultFormat;
endFormatScope();
}
for (int i = 0; i < numbers.size(); ++i) {
const int code = numbers.at(i).toInt();
......
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