Created
September 9, 2013 19:47
-
-
Save orgads/6500545 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c277f83622a11be7d0a8569a44246c632caeb3f0 Mon Sep 17 00:00:00 2001 | |
From: Petar Perisin <[email protected]> | |
Date: Mon, 9 Sep 2013 19:50:37 +0200 | |
Subject: [PATCH] Clear formatting if there is no number | |
Task-number: QTCREATORBUG-10132 | |
diff --git a/src/libs/utils/ansiescapecodehandler.cpp b/src/libs/utils/ansiescapecodehandler.cpp | |
index 38e8ddb..88164a3 100644 | |
--- a/src/libs/utils/ansiescapecodehandler.cpp | |
+++ b/src/libs/utils/ansiescapecodehandler.cpp | |
@@ -116,6 +116,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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment