fix: port Konsole to Redox Qt surface
This commit is contained in:
@@ -1838,16 +1838,17 @@ void Screen::setSelectionEnd(const int x, const int y, const bool trimTrailingWh
|
||||
// Do not let this code go to a release.
|
||||
if (_screenLines.size() < line) {
|
||||
QFile konsoleInfo(QStringLiteral("~/konsole_info_crash_array_out_of_bounds.txt"));
|
||||
konsoleInfo.open(QIODevice::WriteOnly);
|
||||
QTextStream messages(&konsoleInfo);
|
||||
if (konsoleInfo.open(QIODevice::WriteOnly)) {
|
||||
QTextStream messages(&konsoleInfo);
|
||||
|
||||
messages << "_selBegin" << _selBegin << "\n";
|
||||
messages << "endPos" << endPos << "\n";
|
||||
messages << "_selBottomRight" << _selBottomRight << "\n";
|
||||
messages << "bottomRow Calculation: (_selBottomRight / _columns) = " << _selBottomRight << "/" << _columns << "\n";
|
||||
messages << "line Calculation: (bottomRow - _history->getLines()) = " << bottomRow << "-" << _history->getLines() << "\n";
|
||||
messages << "_screenLines.count()" << _screenLines.size() << "\n";
|
||||
messages << "line" << line << "\n";
|
||||
messages << "_selBegin" << _selBegin << "\n";
|
||||
messages << "endPos" << endPos << "\n";
|
||||
messages << "_selBottomRight" << _selBottomRight << "\n";
|
||||
messages << "bottomRow Calculation: (_selBottomRight / _columns) = " << _selBottomRight << "/" << _columns << "\n";
|
||||
messages << "line Calculation: (bottomRow - _history->getLines()) = " << bottomRow << "-" << _history->getLines() << "\n";
|
||||
messages << "_screenLines.count()" << _screenLines.size() << "\n";
|
||||
messages << "line" << line << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
// HACK: do not crash.
|
||||
|
||||
Reference in New Issue
Block a user