I think I found a bug with the KM search feature.
If I search for a word to see where it appears in a macro, the actions that contain it get highlighted in blue. When I change the word, the action is no longer highlighted in blue. This is a nice feature.
Similarly, if the word appears in the top area: "executed as a subroutine with parameters", this area will be highlighted in blue. But if I change the word here, the area stays highlighted even though the word is no longer there.
I'll need a more precise example because my immediate efforts to duplicate this did not result in the issue you describe.
Search for “local”
add “x” to the end of the search
So it could be that the match is still matching the trigger (for reasons that might be non-obvious), or it could be that the issue depends on the specifics of the trigger or other matches.
OK, the reason I wasn't seeing it is that is fixed already in my version.



