Use TextMarks to keep track of the search position in Highlight
All's iterator, this fixes a crash.
Stricter rules on what selections the Highlight All feature is activated
on.