LibWeb: Add a FIXME comment about handling wrapping in arrow navigation

This commit is contained in:
Timothy Flynn 2025-08-22 10:07:44 -04:00 committed by Tim Flynn
parent 42a5f66e41
commit 80412d1ea5
Notes: github-actions[bot] 2025-09-18 11:40:40 +00:00

View file

@ -11,6 +11,9 @@
namespace Web {
// FIXME: Using newline characters to determine line breaks is insufficient. If a line is wrapped due space constraints,
// we want to consider each segment of the wrapped line as its own line in the algorithms below.
static constexpr size_t find_line_start(Utf16View const& view, size_t offset)
{
while (offset != 0 && view.code_unit_at(offset - 1) != '\n')