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});
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user