mirror of
https://github.com/storytold/egui.git
synced 2026-11-24 19:42:51 +01:00
From emilk/egui#8698 (commit 27ded9ed3). A cursor can be stored past the end of the text when a row has more glyphs than characters; Ctrl+ArrowLeft then subtracted below zero. `ccursor_previous_word` clamps such a cursor. The epaint half of #8698 (one glyph per character in a right-to-left run) is covered by the bidi layout; its regression test is kept. Co-authored-by: odessadraekavik <4887819+odessadraekavik@users.noreply.github.com>