forked from qt-creator/qt-creator
ANSI: Simplify escape sequence
Change-Id: I0088a922af7723aabb6751ac80af39467d4cfb0b Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
f1f1f65f7c
commit
61eb23082b
@@ -77,7 +77,7 @@ QList<StringFormatPair> AnsiEscapeCodeHandler::parseText(const QString &text,
|
||||
|
||||
QTextCharFormat charFormat = m_previousFormatClosed ? defaultFormat : m_previousFormat;
|
||||
|
||||
const QString escape = QChar::fromLatin1(27) + QLatin1Char('[');
|
||||
const QString escape = QLatin1String("\x1b[");
|
||||
if (!text.contains(escape)) {
|
||||
outputData << StringFormatPair(text, charFormat);
|
||||
return outputData;
|
||||
|
||||
Reference in New Issue
Block a user