From 1bd56fcae76d75132ab5ea1eca4f04b28862e30d Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 7 Sep 2020 06:46:07 -0700 Subject: [PATCH] Cleanup --- IDE/src/ui/SourceEditWidgetContent.bf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/IDE/src/ui/SourceEditWidgetContent.bf b/IDE/src/ui/SourceEditWidgetContent.bf index a774ee1e..4c9c4b35 100644 --- a/IDE/src/ui/SourceEditWidgetContent.bf +++ b/IDE/src/ui/SourceEditWidgetContent.bf @@ -2337,11 +2337,10 @@ namespace IDE.ui return .None; // If out starting pos is within a method then select the whole thing - if ((startCheckPos >= lastOpenBrace) && (startCheckPos <= lastCloseBrace) /*&& (braceCount != 0)*/) + if ((startCheckPos >= lastOpenBrace) && (startCheckPos <= lastCloseBrace)) { let checkStmtKind = GetStatementRange(Math.Max(lastOpenBrace - 1, 0), .None, var checkStartIdx, var checkEndIdx, var checkEndChar); - if ((checkStmtKind == .Declaration) && (startCheckPos >= checkStartIdx) && (startCheckPos <= checkEndIdx) /*&& (checkStartIdx > foundBlockStartIdx)*/) - //if (checkStmtKind == .Method) + if ((checkStmtKind == .Declaration) && (startCheckPos >= checkStartIdx) && (startCheckPos <= checkEndIdx)) { startIdx = checkStartIdx; endIdx = checkEndIdx;