aboutsummaryrefslogtreecommitdiff
path: root/src/renderers/renderhelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderers/renderhelpers.cpp')
-rw-r--r--src/renderers/renderhelpers.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/renderers/renderhelpers.cpp b/src/renderers/renderhelpers.cpp
index 442d18f..9e44fa8 100644
--- a/src/renderers/renderhelpers.cpp
+++ b/src/renderers/renderhelpers.cpp
@@ -338,9 +338,8 @@ static QString cleanLineEndings(QString &input)
}
void renderhelpers::renderEscapeCodes(const QByteArray &input,
- const QTextCharFormat& format, QTextCursor& cursor)
+ QTextCharFormat& format, const QTextCharFormat& defaultFormat, QTextCursor& cursor)
{
- auto textFormat = format;
const auto tokens = input.split(escapeString);
QString inputString = QString::fromUtf8(input);
cleanLineEndings(inputString);
@@ -354,12 +353,12 @@ void renderhelpers::renderEscapeCodes(const QByteArray &input,
if (escSequence == "[")
{
it++;
- parseCSI(input, it, textFormat, format, cursor);
+ parseCSI(input, it, format, defaultFormat, cursor);
}
}
else
{
- cursor.insertText(currentCharacter, textFormat);
+ cursor.insertText(currentCharacter, format);
}
}
}