File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,10 @@ def MustSplit(self):
199
199
200
200
# Avoid breaking in a container that fits in the current line if possible
201
201
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 )
202
206
203
207
# Can't find opening bracket, behave the same way as
204
208
# SPLIT_ALL_COMMA_SEPARATED_VALUES.
@@ -384,7 +388,6 @@ def SurroundedByParens(token):
384
388
385
389
###########################################################################
386
390
# Argument List Splitting
387
-
388
391
if style .Get ('SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED' ):
389
392
# Split before arguments in a function call or definition if the
390
393
# arguments are terminated by a comma.
You can’t perform that action at this time.
0 commit comments