From 1a447321899cb9a243ed17a6bbd7edc37dc58297 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 17 Oct 2020 13:09:18 -0700 Subject: [PATCH] Clear paren pair list on new statement --- IDE/src/ui/SourceEditWidgetContent.bf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/IDE/src/ui/SourceEditWidgetContent.bf b/IDE/src/ui/SourceEditWidgetContent.bf index f75da8a1..1c7f8089 100644 --- a/IDE/src/ui/SourceEditWidgetContent.bf +++ b/IDE/src/ui/SourceEditWidgetContent.bf @@ -2987,7 +2987,11 @@ namespace IDE.ui } } else - CursorToLineEnd(); + { + // Assume this means we're at the end of a statement, or at least we're not pulling along any other closing parens + mCurParenPairIdSet.Clear(); + CursorToLineEnd(); + } } if ((mAutoComplete != null) && (mAutoComplete.mInvokeWidget != null))