1
0
mirror of synced 2024-12-11 23:46:00 +01:00
ImHex/lib/third_party/imgui
paxcut 3c060cc57a
fix: Finding utf-8 strings failed to select their location. (#1902)
other separate, but closely related fixes are:

- fix: The previous fix also solved the (unreported) bug of being unable
to select utf-8 works by double-clicking.
- fix: The move to next/previous word (Ctr-arrow) behaved differently
depending on the direction. I made both the move left/right functions
share a much simpler algorithm and rewrote the find start/end of word
functions share the same code structure.


### Problem description
The code was using the byte index of the match into the utf-8 string to
store the match locations, but the code that sets the selection uses the
char index into the utf-8 string instead. Another problem was that the
search uses the byte index to determine if it needs to find more
matches.

### Implementation description
Both problems were solved by introducing two functions to switch from
coordinates in units of bytes to coordinates in units of chars and vice
versa.

Co-authored-by: Nik <werwolv98@gmail.com>
2024-09-15 15:16:19 +02:00
..
cimgui build: Updated ImGui to v1.91.0 2024-08-03 23:49:47 +02:00
ColorTextEditor fix: Finding utf-8 strings failed to select their location. (#1902) 2024-09-15 15:16:19 +02:00
custom build: Updated ImGui to v1.90.6 2024-05-08 22:56:20 +02:00
imgui build: Updated ImGui to v1.91.0 2024-08-03 23:49:47 +02:00
imnodes build: Make external plugins build again 2024-02-24 15:06:10 +01:00
implot build: Make external plugins build again 2024-02-24 15:06:10 +01:00
CMakeLists.txt impr: Get rid of cimgui shared library by hooking pinvoke handler 2024-03-12 23:17:49 +01:00