Commit bccd0a3f authored by Tomaz  Canabrava's avatar Tomaz Canabrava Committed by Tomaz Canabrava
Browse files

Fix crash acessing wrong index

parent 4d4d70d6
......@@ -376,7 +376,7 @@ void Screen::resizeImage(int new_lines, int new_columns)
// First join everything.
int currentPos = 0;
int count_needed_lines = 0;
while (currentPos != _screenLines.count()) {
while (currentPos != _screenLines.count() - 1) {
// if the line have the 'NextLine' char, concat with the next line and remove it.
if ((_lineProperties[currentPos] & LINE_WRAPPED) != 0) {
_screenLines[currentPos].append(_screenLines[currentPos + 1]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment