Small fix

This commit is contained in:
Federico Cecchetto 2022-04-03 22:01:50 +02:00
parent d3defef8d6
commit f47a0ce7d9

View File

@ -106,7 +106,7 @@ namespace gui::console
}
}
if (text[text.size() - 1] == '\n')
if (!text.empty() && text[text.size() - 1] == '\n')
{
text.pop_back();
}