indent(1): consider tab characters when forcing a newline after a comma
This commit is contained in:
parent
e8a5d07df5
commit
5f35ea69af
@ -1058,7 +1058,9 @@ main(int argc, char **argv)
|
||||
if (ps.p_l_follow == 0) {
|
||||
if (ps.block_init_level <= 0)
|
||||
ps.block_init = 0;
|
||||
if (break_comma && (!ps.leave_comma || compute_code_target() + (e_code - s_code) > max_col - tabsize))
|
||||
if (break_comma && (!ps.leave_comma ||
|
||||
count_spaces_until(compute_code_target(), s_code, e_code) >
|
||||
max_col - tabsize))
|
||||
force_nl = true;
|
||||
}
|
||||
break;
|
||||
|
@ -44,6 +44,7 @@ void t2 (char *x, int y)
|
||||
,n
|
||||
,o
|
||||
;
|
||||
int chars[ /* push the comma beyond column 74 .... */ ], x;
|
||||
}
|
||||
|
||||
const int int_minimum_size =
|
||||
|
@ -36,6 +36,8 @@ t2(char *x, int y)
|
||||
,n
|
||||
,o
|
||||
;
|
||||
int chars[ /* push the comma beyond column 74 .... */ ],
|
||||
x;
|
||||
}
|
||||
|
||||
const int int_minimum_size =
|
||||
|
Loading…
Reference in New Issue
Block a user