Skip to content

Commit 12e00fb

Browse files
committed
honor SCP settings; closes #5341
1 parent fbcce0d commit 12e00fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.Core/AutoComplete/SelfClosingPairs/SelfClosingPairHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public SelfClosingPairHandler(ICodePaneHandler pane, SelfClosingPairCompletionSe
4040
public override bool Handle(AutoCompleteEventArgs e, AutoCompleteSettings settings, out CodeString result)
4141
{
4242
result = null;
43-
if (!_scpInputLookup.TryGetValue(e.Character, out var pair) && e.Character != '\b')
43+
if (!settings.SelfClosingPairs.IsEnabled || !_scpInputLookup.TryGetValue(e.Character, out var pair) && e.Character != '\b')
4444
{
4545
// not an interesting keypress.
4646
return false;

0 commit comments

Comments
 (0)