Open a document that contains at least a couple pages worth of content (I verified this problem exists with the ScintillaTest app). Without scrolling the content, click in an insensitive margin anywhere on the page and its whole line is selected as expected. Now scroll the content past the first page and click in the margin. The first click does nothing, the second click selects first word or all of the whitespace up to the first non-whitespace character. The third click selects the whole line, the next click repeats the cycle by unselecting the line.
This bug has existed for a while and is not new to any version of macOS. My guess is that the problem is with Editor::PointInSelMargin() and that the coordinates need to be translated.
OK, this seems to work:
Yes, that fixed it. Thanks.
Committed as [96506c].
Related
Commit: [96506c]