Closed Ecalecal closed 2 years ago
Hi @Ecalecal, thanks for reporting this. It should now be fixed in the following build: https://dev.azure.com/fernandreu-public/OfficeRibbonXEditor/_build/results?buildId=1046&view=artifacts&pathAsName=false&type=publishedArtifacts
Basically, the tool was caching the selected text so that any find / replace operation would work off that. This was so that Find Next and similar commands would cycle through the original selection only. This does not work very well with the fact that the find/replace dialog is not modal, i.e. you can keep using the editor (and change your selection) while that dialog is other. Hence, it makes more sense not to cache the selection at all.
Describe the bug Find/Replace fails to target the currently selected code. Instead it seems to get stuck targeting the initially selected code. The program must be restarted to select a new group of code as a work around.
To Reproduce
Expected behavior Upon selecting different lines of code and then running the Search/Replace command, it should target that current selection, not the previously selected lines of code.
Additional context Closing the program, then restarting it seems to clear the memory of the previous selected lines of code, where a newly selected group of code works as expected, but then using Find/Replace on a different group of code lines fails as described above.
Win10 Editor v 1.8.0.990