mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
Currently, if you use the left/right arrow keys to move over a multi- code point glyph, we will move through that glyph one code point at a time. This means you can "pause" your movement in the middle of a glyph and delete a subsection of a grapheme cluster. This now moves the cursor across the entire cluster. Visually, we will need to separately track physical and virtual cursor positions. That is, when you move across a multi-code point glyph, the visual cursor should only move one position at a time, while a physical cursor stores the "real" position in terms of number of code points. This also converts a couple of ints to auto - these are actually size_t, and are being passed to functions that expect size_t, so let's not cast them to ints.
18 KiB
18 KiB