mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00: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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user