wholeWord search fails to identify certain words

I am working on a custom search/replace function, and I want to utilize the wholeWord feature. However, it fails to identify certain words. Is there a bug, or am I doing something wrong?

Here are two examples:

  1. Search panel with effect example
  2. Search with cursor loop example

In both examples, the word “Acme” is not identified at its current position. It happens with other words too, typically on the second line, in longer lines. If I enter the word at different positions in text, those can be found. Also, toggling on the regex and match case works for highlight (example 1) but not search (example 2).

Any help is appreciated.

Thank you,

That was a bug in the whole-word-checking logic. This patch should resolve it.

It looks good, thank you!