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) { * ldfd) {
* } * }
*/ */
if (curbuf->b_ind_js || (curbuf->b_ind_keep_case_label if ((curbuf->b_ind_js || curbuf->b_ind_keep_case_label)
&& cin_iscase(skipwhite(get_cursor_line_ptr()), && cin_iscase(skipwhite(get_cursor_line_ptr()), FALSE)) {
FALSE)))
amount = get_indent(); amount = get_indent();
else } else if (curbuf->b_ind_js) {
amount = get_indent_lnum(lnum);
} else {
amount = skip_label(lnum, &l); amount = skip_label(lnum, &l);
}
start_brace = BRACE_AT_END; start_brace = BRACE_AT_END;
} }

View File

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