Do not trust saved active face when force redrawing
This commit is contained in:
parent
7bbc057cd7
commit
44deaeb4eb
|
@ -231,12 +231,16 @@ void TerminalUI::Screen::output(bool force)
|
||||||
if (lines.empty())
|
if (lines.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (force)
|
|
||||||
hashes.clear();
|
|
||||||
|
|
||||||
// iTerm2 "begin synchronised update" sequence
|
// iTerm2 "begin synchronised update" sequence
|
||||||
printf("\033P=1s\033\\");
|
printf("\033P=1s\033\\");
|
||||||
|
|
||||||
|
if (force)
|
||||||
|
{
|
||||||
|
hashes.clear();
|
||||||
|
printf("\033[m");
|
||||||
|
m_active_face = Face{};
|
||||||
|
}
|
||||||
|
|
||||||
struct Change { int keep; int add; int del; };
|
struct Change { int keep; int add; int del; };
|
||||||
Vector<Change> changes{Change{}};
|
Vector<Change> changes{Change{}};
|
||||||
auto new_hashes = lines | transform([](auto& line) { return hash_value(line.atoms); }) | gather<Vector>();
|
auto new_hashes = lines | transform([](auto& line) { return hash_value(line.atoms); }) | gather<Vector>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user