term: fix final word in string not being constrained by paragraph margins

This commit is contained in:
2024-10-27 14:23:35 +00:00
parent 2a7249cb1e
commit ef9cc13174

View File

@@ -60,7 +60,7 @@ static unsigned int extract_line(
}
}
if (start[i] == '\0') {
if (start[i] == '\0' && (i - delta) < line_length) {
end = NULL;
}