(1) Writer should not find search strings in deleted text at all (meaning text deleted in Track Changes mode)
Or:
(2) Writer still finds search strings in all text (including deleted text in Track Changes mode) and also replaces them, but replaced text should be flagged as deleted.
Solution 1 is preferable to solution 2. However, if solution 2 is easier to implement, IMHO it would be also okay.
IMHO there are two possible ways to fix this bug:
Either:
(1) Writer should not find search strings in deleted text at all (meaning text deleted in Track Changes mode)
Or:
(2) Writer still finds search strings in all text (including deleted text in Track Changes mode) and also replaces them, but replaced text should be flagged as deleted.
Solution 1 is preferable to solution 2. However, if solution 2 is easier to implement, IMHO it would be also okay.