less: Stop adding extra blank lines

Each time we wrapped a line, we were appending an extra blank span which
wasn't needed. This was leading to an extra blank line after every
single line.
This commit is contained in:
Sam Atkins 2023-03-06 13:35:49 +00:00 committed by Jelle Raaijmakers
parent eef07a411b
commit 104be6c8ac

View file

@ -62,7 +62,6 @@ static Vector<StringView> wrap_line(DeprecatedString const& string, size_t width
spans.append(string.substring_view(span_start, bit_length));
span_start += bit_length;
}
spans.append(string.substring_view(span_start));
return spans;
}