IDE: Prevent an infinite loop when comparing files. Issue #38185, patch from Domingo Galmés.

git-svn-id: trunk@64199 -
This commit is contained in:
juha 2020-12-12 18:45:29 +00:00
parent 5d01307132
commit 473e65ba01

View File

@ -616,6 +616,8 @@ begin
// chomp empty lines at end
fPart1.GetPrevLineExtends(Cur1);
fPart2.GetPrevLineExtends(Cur2);
if (Cur1.LineNumber < 1) or (Cur2.LineNumber < 1) then
break;
until not LinesAreEqual(Cur1,Cur2);
end;
end;