File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1893,7 +1893,6 @@ namespace IDE.ui
18931893 // If we're aligned with the previous line then do the 'block indent' logic, otherwise are are already indented
18941894 if ( indentCount == column / 4 )
18951895 {
1896- bool isLambdaOpen = false ;
18971896 bool isExpr = false ;
18981897
18991898 char8 prevC = 0 ;
@@ -1904,13 +1903,12 @@ namespace IDE.ui
19041903 {
19051904 let displayType = ( SourceElementType ) mData . mText [ checkIdx ] . mDisplayTypeId ;
19061905 if ( displayType == . Comment )
1907- continue ;
1908- prevC = mData . mText [ checkIdx ] . mChar ;
1909- if ( prevC == '>' )
19101906 {
1911- isLambdaOpen = true ;
1912- break ;
1907+ checkIdx -- ;
1908+ continue ;
19131909 }
1910+ prevC = mData . mText [ checkIdx ] . mChar ;
1911+
19141912 if ( prevC == ')' )
19151913 {
19161914 parenOpenCount ++ ;
@@ -1932,15 +1930,15 @@ namespace IDE.ui
19321930 break ;
19331931 if ( prevC == '=' )
19341932 {
1935- isLambdaOpen = true ;
1933+ isExpr = true ;
19361934 break ;
19371935 }
19381936 }
19391937
19401938 checkIdx -- ;
19411939 }
19421940
1943- if ( ( isLambdaOpen ) || ( isExpr ) )
1941+ if ( isExpr )
19441942 {
19451943 // Lambda opening or initializer expression
19461944 column += 4 ;
You can’t perform that action at this time.
0 commit comments