mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 05:14:10 +02:00
Cleanup
This commit is contained in:
parent
f868d56abb
commit
1bd56fcae7
1 changed files with 2 additions and 3 deletions
|
@ -2337,11 +2337,10 @@ namespace IDE.ui
|
||||||
return .None;
|
return .None;
|
||||||
|
|
||||||
// If out starting pos is within a method then select the whole thing
|
// 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);
|
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 == .Declaration) && (startCheckPos >= checkStartIdx) && (startCheckPos <= checkEndIdx))
|
||||||
//if (checkStmtKind == .Method)
|
|
||||||
{
|
{
|
||||||
startIdx = checkStartIdx;
|
startIdx = checkStartIdx;
|
||||||
endIdx = checkEndIdx;
|
endIdx = checkEndIdx;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue