mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Saving universal-highlighter colors settings (fixes #2514)
This commit is contained in:
parent
5cb3b065a2
commit
80fcc0e63f
1 changed files with 4 additions and 2 deletions
|
|
@ -138,7 +138,7 @@ type
|
|||
implementation
|
||||
|
||||
uses
|
||||
Laz2_XMLRead;
|
||||
CRC, Laz2_XMLRead;
|
||||
|
||||
//==== TSynUniSyn ============================================================
|
||||
constructor TSynUniSyn.Create(AOwner: TComponent);
|
||||
|
|
@ -175,8 +175,10 @@ function TSynUniSyn.GetHashCode: PtrInt;
|
|||
function Update(ACrc: PtrInt; ARule: TSynRule): PtrInt;
|
||||
var
|
||||
Index: Integer;
|
||||
AValue: Cardinal;
|
||||
begin
|
||||
Result:= ACrc xor ARule.Attribs.GetHashCode;
|
||||
AValue:= Cardinal(ARule.Attribs.GetHashCode);
|
||||
Result:= PtrInt(CRC32(Cardinal(ACrc), @AValue, SizeOf(AValue)));
|
||||
|
||||
if ARule is TSynRange then
|
||||
begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue