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:
André Twupack 2014-09-11 20:11:57 +02:00
parent 053a13d2a4
commit f4f9e7eaf3
2 changed files with 7 additions and 5 deletions

View File

@ -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;
}

View File

@ -247,7 +247,7 @@ static int included_patches[] = {
//351,
//350,
//349,
//348,
348,
//347,
346,
345,