Fix another terminal update issue in the latest code change

Fixes #3426
This commit is contained in:
Maxime Coste 2020-03-23 07:15:09 +11:00
parent e6801867c7
commit 5c3b0b7503

View File

@ -203,12 +203,14 @@ void TerminalUI::Screen::output(bool force)
changes.push_back({pos, 0, 0});
break;
case DiffOp::Add:
if (changes.back().add == 0)
if (changes.back().add == 0 && changes.back().del == 0)
changes.back().pos = pos;
changes.back().add += len;
pos += len;
break;
case DiffOp::Remove:
if (changes.back().add == 0 && changes.back().del == 0)
changes.back().pos = pos;
changes.back().del += len;
break;
}