mirror of https://gitlab.com/basile.b/dexed.git
editor options, dont reset font size to default
but still stores what's size should be default (CTRL+.)
This commit is contained in:
parent
b977e9a092
commit
e2765665eb
|
@ -538,6 +538,7 @@ var
|
||||||
shc: TCEPersistentShortcut;
|
shc: TCEPersistentShortcut;
|
||||||
kst: TSynEditKeyStroke;
|
kst: TSynEditKeyStroke;
|
||||||
dup: boolean;
|
dup: boolean;
|
||||||
|
savedSize: integer;
|
||||||
begin
|
begin
|
||||||
anEditor.D2Highlighter.Assign(D2Syn);
|
anEditor.D2Highlighter.Assign(D2Syn);
|
||||||
anEditor.TxtHighlighter.Assign(TxtSyn);
|
anEditor.TxtHighlighter.Assign(TxtSyn);
|
||||||
|
@ -545,8 +546,10 @@ begin
|
||||||
anEditor.autoDotDelay:=fAutoDotDelay;
|
anEditor.autoDotDelay:=fAutoDotDelay;
|
||||||
anEditor.ddocDelay:=fDDocDelay;
|
anEditor.ddocDelay:=fDDocDelay;
|
||||||
|
|
||||||
|
savedSize := anEditor.Font.Size;
|
||||||
anEditor.defaultFontSize := font.Size;
|
anEditor.defaultFontSize := font.Size;
|
||||||
anEditor.Font.Assign(font);
|
anEditor.Font.Assign(font);
|
||||||
|
anEditor.Font.Size := savedSize;
|
||||||
|
|
||||||
anEditor.completionMenu.TheForm.Height := fCompletionMenuHeight;
|
anEditor.completionMenu.TheForm.Height := fCompletionMenuHeight;
|
||||||
anEditor.completionMenu.TheForm.Width := fCompletionMenuWidth;
|
anEditor.completionMenu.TheForm.Width := fCompletionMenuWidth;
|
||||||
|
|
|
@ -441,7 +441,7 @@ begin
|
||||||
fDDocTimer.Interval := fDDocDelay;
|
fDDocTimer.Interval := fDDocDelay;
|
||||||
fDDocTimer.OnTimer := @DDocTimerEvent;
|
fDDocTimer.OnTimer := @DDocTimerEvent;
|
||||||
//
|
//
|
||||||
fAutoDotDelay := 200;
|
fAutoDotDelay := 20;
|
||||||
fAutoDotTimer := TIdleTimer.Create(self);
|
fAutoDotTimer := TIdleTimer.Create(self);
|
||||||
fAutoDotTimer.AutoEnabled:=true;
|
fAutoDotTimer.AutoEnabled:=true;
|
||||||
fAutoDotTimer.Interval := fAutoDotDelay;
|
fAutoDotTimer.Interval := fAutoDotDelay;
|
||||||
|
|
Loading…
Reference in New Issue