Commit 4d4d70d6 authored by Carlos Alves's avatar Carlos Alves Committed by Tomaz Canabrava
Browse files

Ignore current cursor line

Don't need to reflow the current cursor line. (it will bug and crash)
parent 2be00da5
......@@ -408,15 +408,11 @@ void Screen::resizeImage(int new_lines, int new_columns)
// Then move the data to lines below.
currentPos = 0;
while (currentPos != _screenLines.count()) {
while (currentPos != _screenLines.count() && currentPos != _cuY) {
const bool shouldCopy = _screenLines[currentPos].size() > new_columns;
// Copy from the current line, to the next one.
if (shouldCopy) {
// If we are in the last line, append a new one.
if (currentPos == _screenLines.count() - 1) {
auto values = _screenLines[currentPos].mid(new_columns);
Supports Markdown
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