commit | 50f42cadb1a5970d3a6b83d961e66fa486df8fcb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jul 15 14:12:30 2011 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jul 15 14:12:30 2011 +0200 |
tree | bcdbc21d3f7bed8e47f9f201e304d480f76f461a | |
parent | 734d99804b42638ff25480dd8f8f477f2809cc7e [diff] [blame] |
updated for version 7.3.249 Problem: Wrong indenting for array initializer. Solution: Detect '}' in a better way. (Lech Lorens)
diff --git a/src/misc1.c b/src/misc1.c index d69f12f..c7f2f80 100644 --- a/src/misc1.c +++ b/src/misc1.c
@@ -7945,8 +7945,7 @@ * If we're at the end of a block, skip to the start of * that block. */ - curwin->w_cursor.col = 0; - if (*cin_skipcomment(l) == '}' + if (find_last_paren(l, '{', '}') && (trypos = find_start_brace(ind_maxcomment)) != NULL) /* XXX */ {