Tue 29 Mar 2016 10:24:48 AM UTC, original submission:
To reproduce this bug do the following:
1. Open a sacrificial copy of a .m file in the GUI editor
2. Open the find dialog. Type text to search and replace, then press "Replace all".
3. Close the dialog. Forget you ever opened it
4. Open the find dialog.
5. Type '=' <enter>
6. Observe that all copies of '=' in the file have been replaced by the "replace" text from step 2.
7. (Adding insult to injury: Try to undo, by typing ctrl-z, and observe that only one of the replacements is undone. Try to remember how many substitutions were made, and type ctrl-z that number of times.)
I'm not sure if retaining the most recent action is the next default is desired. I have a patch that resets it to "find" each time the dialog is opened, which I'll attach once I have a bug number.
For some unknown reason, it also seems to reset to "find" whenever the search text is changed, which is possibly undesirable. However, at least when repeating the most recent search by simply pressing <enter>, it seems not to reset.
|