ui: Fixed code view cutting off last line

This commit is contained in:
Eberhard Graether
2017-10-12 10:42:56 +02:00
parent 43f492cded
commit c39168967f
-5
View File
@@ -42,11 +42,6 @@ QtCodeField::QtCodeField(
viewport()->setCursor(Qt::ArrowCursor);
std::string displayCode = m_code;
if (!displayCode.empty() && *displayCode.rbegin() == '\n')
{
displayCode.pop_back();
}
setPlainText(QString::fromUtf8(displayCode.c_str()));
createLineLengthCache();