> On May 10, 2020, at 1:20 AM, Mattias Gaertner via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote: > > CleanPosToCaret is using a binary search. Compared to the other > operations like parsing, this is is hardly measurable. Thanks, I got it working now. Regards, Ryan Joseph