Fix another terminal update issue in the latest code change
Fixes #3426
This commit is contained in:
parent
e6801867c7
commit
5c3b0b7503
|
@ -203,12 +203,14 @@ void TerminalUI::Screen::output(bool force)
|
||||||
changes.push_back({pos, 0, 0});
|
changes.push_back({pos, 0, 0});
|
||||||
break;
|
break;
|
||||||
case DiffOp::Add:
|
case DiffOp::Add:
|
||||||
if (changes.back().add == 0)
|
if (changes.back().add == 0 && changes.back().del == 0)
|
||||||
changes.back().pos = pos;
|
changes.back().pos = pos;
|
||||||
changes.back().add += len;
|
changes.back().add += len;
|
||||||
pos += len;
|
pos += len;
|
||||||
break;
|
break;
|
||||||
case DiffOp::Remove:
|
case DiffOp::Remove:
|
||||||
|
if (changes.back().add == 0 && changes.back().del == 0)
|
||||||
|
changes.back().pos = pos;
|
||||||
changes.back().del += len;
|
changes.back().del += len;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user