1
0
mirror of synced 2025-01-09 13:11:38 +01:00
ImHex/lib
paxcut 6d2761f141
feat: Added multiline search/replace and fixed various crashes. (#1911)
### Problem description
Previous implementation ignored everything after the first newline.
Other changes include:
- Added isEmpty() function that checks if editor has no content.
- replaced asserts with default behavior to avoid unneeded crashes.
- fixed off by one error in DeleteRange()
- some crashes occurred because readily available corrective actions
were not being taken. For example start/end being -1 in DeleteRange().
- At the heart of search/replace is the ability to translate from
indices into the text string to line/column coordinates used for
everything. To this end a function (StringIndexToCoordinates) was added
to do the translation taking utf-8 chars into account. This made the
recently added Utf8BytesToChars function unneeded, so it was removed.
- Removed commented out code that is not useful anymore. Also removed
tooltip code which is also unused.
- Removed unused parameter wrapAround to FindNext().
2024-11-29 09:37:05 +01:00
..
external patterns: Updated pattern language 2024-11-28 21:27:02 +01:00
libimhex build: Updated ImGui to v1.91.5 2024-11-24 18:55:56 +01:00
third_party feat: Added multiline search/replace and fixed various crashes. (#1911) 2024-11-29 09:37:05 +01:00