1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:17:35 +00:00

Terminal: Reallocate kept lines when resizing the terminal.

Otherwise we end up with garbage text when making the window bigger.
This commit is contained in:
Andreas Kling 2019-06-06 14:59:18 +02:00
parent e8f35ef311
commit 6e4f0b3cc5
2 changed files with 27 additions and 12 deletions

View file

@ -127,10 +127,11 @@ private:
~Line();
void clear(Attribute);
bool has_only_one_background_color() const;
void set_length(word);
byte* characters { nullptr };
Attribute* attributes { nullptr };
bool dirty { false };
word length { 0 };
word m_length { 0 };
};
Line& line(size_t index)
{