From 32e03e9a9bcacfca857278f85090bde5e467927d Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 3 Jul 2018 14:42:37 +0200 Subject: [PATCH] Also prevent brace auto closing with ctrl when invoked directly --- src/ce_synmemo.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ce_synmemo.pas b/src/ce_synmemo.pas index a7f9366b..a6411755 100644 --- a/src/ce_synmemo.pas +++ b/src/ce_synmemo.pas @@ -3458,7 +3458,8 @@ begin autoClosePair(autoCloseSquareBracket); '(': showCallTips(false); ')': if fCallTipWin.Visible then decCallTipsLvl; - '{': + '{': if GetKeyShiftState <> [ssShift] then + begin case fAutoCloseCurlyBrace of autoCloseAlways: curlyBraceCloseAndIndent; @@ -3473,6 +3474,7 @@ begin curlyBraceCloseAndIndent; end; end; + end; end; if fCompletion.IsActive then fCompletion.CurrentString:=GetWordAtRowCol(LogicalCaretXY);