1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

Terminal: Remove crashy assertion about line length

If we resize/maximize the window, we might end up with some lines in
history that had a different length than the current terminal width.
That's okay, so let's not crash because of it.

Fixes #620.
This commit is contained in:
Andreas Kling 2019-10-02 17:12:46 +02:00
parent 35138437ef
commit da463d9b11

View file

@ -240,7 +240,6 @@ void TerminalWidget::paint_event(GPaintEvent& event)
// the character itself in the center of the columns
// its bytes take up as far as the terminal is concerned.
ASSERT(line.text().length() == m_terminal.columns());
Utf8View utf8_view { line.text() };
for (auto it = utf8_view.begin(); it != utf8_view.end(); ++it) {