FIXED? Only partial undo on Search and Replace
Posted: 18 Jul 2023 02:12
I did a silly thing and made a global change on a series of files using the Search and Replace facility. I was not happy with the result of my changes so I pressed CTRL/Z to undo the changes. At the time I had seven or eight files open. The ctrl/z reversed the changes in the current file (.js) but only partially restored the changes in another file.
The strings to replace were lower2Gauge. lower2String and I wanted them to become: buildBottomGauge and buildBottomString
The change forced was something like :
Search: lower2
Replace: buildBottom
Find in all files was checked.
The change occurred and the strings became buildBottomGauge and buildBottomString as expected. However, when I pressed ctrl/z to reverse, an open XML file was left in a partially restored state. The buildBottom change was removed but the lower2 original string was not reinstated.
I was left with several occurrences of just 'Gauge' and 'String' in several places within that file.
Something funny happening there in the undo of a global search and replace.
The strings to replace were lower2Gauge. lower2String and I wanted them to become: buildBottomGauge and buildBottomString
The change forced was something like :
Search: lower2
Replace: buildBottom
Find in all files was checked.
The change occurred and the strings became buildBottomGauge and buildBottomString as expected. However, when I pressed ctrl/z to reverse, an open XML file was left in a partially restored state. The buildBottom change was removed but the lower2 original string was not reinstated.
I was left with several occurrences of just 'Gauge' and 'String' in several places within that file.
Something funny happening there in the undo of a global search and replace.