mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
When size_t replaced int (6f4c370), it caused the 'start = -1' trick to fail, setting start to (unsigned)-1 instead. This then caused String.substring to fail, as that is a little bit higher than the length of the string! This resulted in an outright crash. Later, the builder is not reset before making a new line. This causes the line to simply be the earlier one, but with more text on it. (There's also a few changes from clang-format, namely the #include reorganization.) Fixes #1211 (although I wasn't aware of it when I made this commit).