| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.348 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| 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. |
| Files: src/misc1.c |
| |
| |
| |
| |
| |
| *** 7497,7505 **** |
| * ldfd) { |
| * } |
| */ |
| ! if (curbuf->b_ind_js || (curbuf->b_ind_keep_case_label |
| ! && cin_iscase(skipwhite(ml_get_curline()), FALSE))) |
| amount = get_indent(); |
| else |
| amount = skip_label(lnum, &l); |
| |
| --- 7497,7507 ---- |
| * ldfd) { |
| * } |
| */ |
| ! 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); |
| |
| |
| |
| |
| *** 736,737 **** |
| --- 736,739 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 348, |
| /**/ |
| |
| -- |
| 5 out of 4 people have trouble with fractions. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |