From e12a2562b61daf3486d4e1b341435d4f8f08d2cf Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 25 Sep 2020 06:16:31 -0700 Subject: [PATCH] Allow enter-autocomplete with no replacement selection --- IDE/src/ui/SourceEditWidgetContent.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDE/src/ui/SourceEditWidgetContent.bf b/IDE/src/ui/SourceEditWidgetContent.bf index 782a8b23..99d4e3c6 100644 --- a/IDE/src/ui/SourceEditWidgetContent.bf +++ b/IDE/src/ui/SourceEditWidgetContent.bf @@ -2710,7 +2710,7 @@ namespace IDE.ui if ((mAutoComplete.mInsertEndIdx != -1) && (mAutoComplete.mInsertEndIdx != mCursorTextPos) && (keyChar != '\t') && (keyChar != '\r') && (keyChar != '\n')) doAutocomplete = false; - if ((mAutoComplete.IsInsertEmpty()) && (!mAutoComplete.mIsFixit) && (keyChar != '.') && (keyChar != '\t')) + if ((mAutoComplete.IsInsertEmpty()) && (!mAutoComplete.mIsFixit) && (keyChar != '.') && (keyChar != '\t') && (keyChar != '\r')) { // Require a '.' or tab to insert autocomplete when we don't have any insert section (ie: after an 'enumVal = ') doAutocomplete = false;