mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Add a FIXME comment about handling wrapping in arrow navigation
This commit is contained in:
parent
42a5f66e41
commit
80412d1ea5
Notes:
github-actions[bot]
2025-09-18 11:40:40 +00:00
Author: https://github.com/trflynn89
Commit: 80412d1ea5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5956
Reviewed-by: https://github.com/gmta
1 changed files with 3 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue