Search/replace bug in Textpad 4.5.0
Posted: Wed Nov 27, 2002 1:40 am
I did a search of the forum messages for this, but apparently it hasn't been raised before.
Select some text, then press F8 (search-replace). When you do this, sometimes the dialog box will come up with Active document checked as the scope, other times with Selected text checked. I don't know what controls this and can't predict it. If Active document comes up checked, you can check Selected text and all will work well. However, if Selected text comes up checked when the dialog box appears, incorrect behaviour can occur as follows. Fill in search and replace strings (e.g. "th" and "cz"). Click on Replace all. The substitution will be made not only in the selected text but throughout the active document, as if Active document were checked as the scope.
Select some text, then press F8 (search-replace). When you do this, sometimes the dialog box will come up with Active document checked as the scope, other times with Selected text checked. I don't know what controls this and can't predict it. If Active document comes up checked, you can check Selected text and all will work well. However, if Selected text comes up checked when the dialog box appears, incorrect behaviour can occur as follows. Fill in search and replace strings (e.g. "th" and "cz"). Click on Replace all. The substitution will be made not only in the selected text but throughout the active document, as if Active document were checked as the scope.