aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/indent_c.c10
-rw-r--r--src/nvim/version.c2
2 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c
index 6e12194b63..509f94dbf2 100644
--- a/src/nvim/indent_c.c
+++ b/src/nvim/indent_c.c
@@ -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;
}
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 7143be48c7..dccd47846e 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -247,7 +247,7 @@ static int included_patches[] = {
//351,
//350,
//349,
- //348,
+ 348,
//347,
346,
345,