mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.348
Problem: When using "J1" in 'cinoptions' a line below a continuation line gets too much indent. Solution: Fix parenthesis in condition. https://code.google.com/p/vim/source/detail?r=v7-4-348
This commit is contained in:
parent
053a13d2a4
commit
f4f9e7eaf3
@ -2009,12 +2009,14 @@ int get_c_indent(void)
|
||||
* ldfd) {
|
||||
* }
|
||||
*/
|
||||
if (curbuf->b_ind_js || (curbuf->b_ind_keep_case_label
|
||||
&& cin_iscase(skipwhite(get_cursor_line_ptr()),
|
||||
FALSE)))
|
||||
if ((curbuf->b_ind_js || curbuf->b_ind_keep_case_label)
|
||||
&& cin_iscase(skipwhite(get_cursor_line_ptr()), FALSE)) {
|
||||
amount = get_indent();
|
||||
else
|
||||
} else if (curbuf->b_ind_js) {
|
||||
amount = get_indent_lnum(lnum);
|
||||
} else {
|
||||
amount = skip_label(lnum, &l);
|
||||
}
|
||||
|
||||
start_brace = BRACE_AT_END;
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ static int included_patches[] = {
|
||||
//351,
|
||||
//350,
|
||||
//349,
|
||||
//348,
|
||||
348,
|
||||
//347,
|
||||
346,
|
||||
345,
|
||||
|
Loading…
Reference in New Issue
Block a user