I found a bug while working on my project and replicated it in the example project!
Basically, when using regions with wrapped text, if the region spans a line break then any other text on the line is also counted as being a part of that region. I've attached a gif of what I mean.
This is the obj_test_wrap, with the only code changed being that there are [region] tags on either side of the red text and a region detector to make it display red.
It's worth noting that this happens even when the remaining space on the line is completely blank:
But does not happen when the space is a result of manual line breaks (\n\n in this case):
I found a bug while working on my project and replicated it in the example project! Basically, when using regions with wrapped text, if the region spans a line break then any other text on the line is also counted as being a part of that region. I've attached a gif of what I mean. This is the obj_test_wrap, with the only code changed being that there are [region] tags on either side of the red text and a region detector to make it display red.
It's worth noting that this happens even when the remaining space on the line is completely blank:
But does not happen when the space is a result of manual line breaks (\n\n in this case):