In the never-ending saga that is my application, I have discovered that my text search fails (ie using PosEx fails to correctly locate the search characters in the TMemo) if I assign lines read from a file to a TMemo using TMemo.Lines := strList rather than TMemo.Text := strList.Text.
It appears to me to be related to the number of lines and therefore likely the LineEndings are causing the issue.
macOS 10.14.5, Lazarus v2.10 (trunk), FPC 3.0.4 or FPC 3.3.1 (trunk).
Curiously it works fine under:
o Ubuntu 18.04 64 bit with Lazarus v1.8.2; FPC v3.0.4;
o FreeBSD 12.0 64 bit with Lazarus v2.00; FPC v3.0.4; and
o Windows 10 64 bit cross-compiled under macOS for 32 bit
using either method.
Easy enough to work around now that I figured out what is going on, but... I doubt it should be happening.