From ab004faa78e6acfb6b21dcb6a00d4132385f520a Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 6 Nov 2020 09:57:19 -0800 Subject: [PATCH] Fixed cursor repositioning for closing quotes --- 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 96fc7584..98dabf84 100644 --- a/IDE/src/ui/SourceEditWidgetContent.bf +++ b/IDE/src/ui/SourceEditWidgetContent.bf @@ -3118,7 +3118,7 @@ namespace IDE.ui { if ((mData.mText[checkPos].mDisplayTypeId == (int32)wantElementType) && ((keyChar == '"') || (keyChar == '\'') || (keyChar == ')') || (keyChar == ']') || (keyChar == '>') || (keyChar == '}')) && - (IsCurrentPairClosing(checkPos))) + (IsCurrentPairClosing(cursorTextPos))) { mJustInsertedCharPair = false; CursorTextPos++;