1
0
mirror of synced 2024-12-11 23:46:00 +01:00
ImHex/lib/third_party/imgui
paxcut 96a588bd86
fix: F3 failed to locate the correct set of matches if file was edited after doing a search (#1867)
### Problem description
The bug can be reproduced as follows:
1) Using Ctrl-F do a search for a term that occurs several times in the
file. and press F3 to visit them.
2) Go back to the fop of the file and insert 3 blank lines. 
3) Pressing F3 once or many times will not find the term entered above.


### Implementation description
The reason for this bug is that the positions of the matches are not
being reset when changes can potentially move them.
The fix consists on resetting the search locations when changing the
contents of the file and redoing the search after the changes are made.
The bug was specially problematic when doing replace because the
replacement position would be identified as a match. This PR fixes
replace as well.

---------

Co-authored-by: Nik <werwolv98@gmail.com>
2024-09-15 15:32:10 +02:00
..
cimgui build: Updated ImGui to v1.91.0 2024-08-03 23:49:47 +02:00
ColorTextEditor fix: F3 failed to locate the correct set of matches if file was edited after doing a search (#1867) 2024-09-15 15:32:10 +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