Commit 02ba277d authored by Carlos Alves's avatar Carlos Alves Committed by Tomaz Canabrava
Browse files

Reflow current cursor bug

Calculate the current cursor position lines needed.
parent 73ed15f2
......@@ -393,6 +393,7 @@ void Screen::resizeImage(int new_lines, int new_columns)
count_needed_lines += _screenLines[currentPos].count() / (new_columns + 1);
currentPos++;
}
count_needed_lines += _screenLines[currentPos].count() / (new_columns + 1);
// If it will need more lines than new_lines have, send lines to _history
count_needed_lines += _cuY;
......
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