File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,10 @@ def MustSplit(self):
199199
200200 # Avoid breaking in a container that fits in the current line if possible
201201 opening = _GetOpeningBracket (current )
202+ # If at the start of a container, then we need to double check if it is
203+ # actually nested.
204+ if opening == current :
205+ opening = _GetOpeningBracket (previous )
202206
203207 # Can't find opening bracket, behave the same way as
204208 # SPLIT_ALL_COMMA_SEPARATED_VALUES.
@@ -384,7 +388,6 @@ def SurroundedByParens(token):
384388
385389 ###########################################################################
386390 # Argument List Splitting
387-
388391 if style .Get ('SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED' ):
389392 # Split before arguments in a function call or definition if the
390393 # arguments are terminated by a comma.
You can’t perform that action at this time.
0 commit comments