Replace Next inserts extraneous characters
Posted: Thu Jan 04, 2001 4:18 pm
Help!
Some of the TextPad users in my office have brought the following bug to my attention.
If you do a simple Replace and decide to hit the "Replace Next" button to test your replace (assuming that this button is different from the "Replace" button because it is going to "Find" the next hit and then "Replace" it) then instead TextPad will simply insert the Replacement characters at the caret.
I've never run into this bug becuause, personally, I wouldn't test a Search and Replace like that. I'd find an instance and then use the "Replace" button.
So -- two questions:
A - what is "Replace Next" REALLY supposed to do?
B - does anybody else feel like this is a dangerous bug (there are lots of ways for this bug to bite you i.e. you could be in the middle of Replacing and then move your cursor and then resume with Replace next and whatever was highlighted or wherever your cursor was gets the Replacement Text inserted regardless of matching the Search text!)
--Doug Bayless
2@byu.edu
Some of the TextPad users in my office have brought the following bug to my attention.
If you do a simple Replace and decide to hit the "Replace Next" button to test your replace (assuming that this button is different from the "Replace" button because it is going to "Find" the next hit and then "Replace" it) then instead TextPad will simply insert the Replacement characters at the caret.
I've never run into this bug becuause, personally, I wouldn't test a Search and Replace like that. I'd find an instance and then use the "Replace" button.
So -- two questions:
A - what is "Replace Next" REALLY supposed to do?
B - does anybody else feel like this is a dangerous bug (there are lots of ways for this bug to bite you i.e. you could be in the middle of Replacing and then move your cursor and then resume with Replace next and whatever was highlighted or wherever your cursor was gets the Replacement Text inserted regardless of matching the Search text!)
--Doug Bayless
2@byu.edu