mirror of https://gitlab.com/basile.b/dexed.git
sxsyn, fix range comparison
This commit is contained in:
parent
2428994828
commit
846f86fb40
|
@ -169,15 +169,13 @@ end;
|
|||
function TSynSxSynRange.Compare(range: TSynCustomHighlighterRange): integer;
|
||||
begin
|
||||
result := inherited Compare(range);
|
||||
assert(range <> nil);
|
||||
if not result.equals(0) then
|
||||
exit;
|
||||
if range is TSynSxSynRange then
|
||||
result := integer(rangeKind = TSynSxSynRange(range).rangeKind);
|
||||
if (range is TSynSxSynRange) and (rangeKind = TSynSxSynRange(range).rangeKind) then
|
||||
result := 1;
|
||||
end;
|
||||
|
||||
procedure TSynSxSynRange.Clear;
|
||||
begin
|
||||
inherited;
|
||||
rangeKind := TRangeKind.rkNone;
|
||||
end;
|
||||
|
||||
|
|
Loading…
Reference in New Issue