When using a MatchDecorator to match and replace a large chunk of text, subsequent matches in the document are not replaced because the content is outside the visible range.
Example scenario:
- Configure the view to show as a single line text box.
- Use a MatchDecorator to replace the first 5,000 digits of pi with
PI
. - Paste the pattern into the text box twice.
- The editor may show something like
PI 3.1
because everything after the 3.1 is outside the calculated visible range.
Should the visible range be recalculated after decoration replacements and then have the matchers run again? Or should the MatchDecorator be configurable to run against the entire doc instead of just the visible range?