summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-07-02 17:02:36 +0200
committerBram Moolenaar <Bram@vim.org>2014-07-02 17:02:36 +0200
commite7eb789ef0d2dadf5824a0c6fbd452b1feb272e2 (patch)
tree19e505bcbcfb781586f2655e6976773f694d66c2 /src/misc1.c
parentb7d929a86f4c3c4d127b37728b26f3a4632b8474 (diff)
downloadvim-git-e7eb789ef0d2dadf5824a0c6fbd452b1feb272e2.tar.gz
updated for version 7.4.348v7.4.348
Problem: When using "J1" in 'cinoptions' a line below a continuation line gets too much indent. Solution: Fix parenthesis in condition.
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/misc1.c b/src/misc1.c
index fbd94d946..c0a045d14 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -7497,9 +7497,11 @@ get_c_indent()
* ldfd) {
* }
*/
- if (curbuf->b_ind_js || (curbuf->b_ind_keep_case_label
- && cin_iscase(skipwhite(ml_get_curline()), FALSE)))
+ if ((curbuf->b_ind_js || curbuf->b_ind_keep_case_label)
+ && cin_iscase(skipwhite(ml_get_curline()), FALSE))
amount = get_indent();
+ else if (curbuf->b_ind_js)
+ amount = get_indent_lnum(lnum);
else
amount = skip_label(lnum, &l);