From e2765665eb309afdbfea59b077e515bb31ee4a60 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 11 Dec 2015 04:27:18 +0100 Subject: [PATCH] editor options, dont reset font size to default but still stores what's size should be default (CTRL+.) --- src/ce_editoroptions.pas | 3 +++ src/ce_synmemo.pas | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ce_editoroptions.pas b/src/ce_editoroptions.pas index 1cc474f8..b1f7c8b8 100644 --- a/src/ce_editoroptions.pas +++ b/src/ce_editoroptions.pas @@ -538,6 +538,7 @@ var shc: TCEPersistentShortcut; kst: TSynEditKeyStroke; dup: boolean; + savedSize: integer; begin anEditor.D2Highlighter.Assign(D2Syn); anEditor.TxtHighlighter.Assign(TxtSyn); @@ -545,8 +546,10 @@ begin anEditor.autoDotDelay:=fAutoDotDelay; anEditor.ddocDelay:=fDDocDelay; + savedSize := anEditor.Font.Size; anEditor.defaultFontSize := font.Size; anEditor.Font.Assign(font); + anEditor.Font.Size := savedSize; anEditor.completionMenu.TheForm.Height := fCompletionMenuHeight; anEditor.completionMenu.TheForm.Width := fCompletionMenuWidth; diff --git a/src/ce_synmemo.pas b/src/ce_synmemo.pas index 4e7bda22..f2835ee6 100644 --- a/src/ce_synmemo.pas +++ b/src/ce_synmemo.pas @@ -441,7 +441,7 @@ begin fDDocTimer.Interval := fDDocDelay; fDDocTimer.OnTimer := @DDocTimerEvent; // - fAutoDotDelay := 200; + fAutoDotDelay := 20; fAutoDotTimer := TIdleTimer.Create(self); fAutoDotTimer.AutoEnabled:=true; fAutoDotTimer.Interval := fAutoDotDelay;