* Fix split, last term of length 1 is sometimes missed

git-svn-id: trunk@39843 -
This commit is contained in:
michael 2018-09-30 09:18:21 +00:00
parent 01790c4e46
commit a7278c1806

View File

@ -1304,7 +1304,7 @@ begin
LastSep:=Sep+System.Length(Separators[Match]);
Sep:=NextSep(LastSep,Match);
end;
if (LastSep<Length-1) and ((ACount=0) or (Len<ACount)) then
if (LastSep<Length) and ((ACount=0) or (Len<ACount)) then
begin
T:=SubString(LastSep);
// Writeln('Examining >',T,'< at pos,',LastSep,' till pos ',Sep);