Indeed, I now see. When I type a single '(' on a second line, it doesn't show up, but when I type it again, it shows up since the previous character is a '('.
Maybe you should replace those double returns with single ones? And then add the amount of found returns before the selection to get the last character?
I don't know, I'm just guessing.