#61

InputText word/line selection mode tests

Draftronak69wants to merge intofrom

First draft of tests as requested in https://github.com/ocornut/imgui/pull/8032.

CalcTextSize() gives bouding rects. So, had to hack together index_pos() to get coords for individual chars in multiline text.

https://github.com/user-attachments/assets/fac5e7ea-c2b8-4f56-aee1-b8c46182d558

Activity

4
ocornut2y ago

Thanks a lot! I am a little swamped right now but this looks great and is exactly the sorts of thing I needed for https://github.com/ocornut/imgui/pull/8032

ronak692y ago

cool. how do you think a regression here will look like? are you concerned about unrelated code breaking selection, or changes to the selection code itself breaking selection?

This pull request is a draft

Merging is unavailable until it is marked ready for review.