diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-07-15 14:12:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-07-15 14:12:30 +0200 |
commit | 50f42cadb1a5970d3a6b83d961e66fa486df8fcb (patch) | |
tree | bcdbc21d3f7bed8e47f9f201e304d480f76f461a /src/misc1.c | |
parent | 734d99804b42638ff25480dd8f8f477f2809cc7e (diff) | |
download | vim-git-50f42cadb1a5970d3a6b83d961e66fa486df8fcb.tar.gz |
updated for version 7.3.249v7.3.249
Problem: Wrong indenting for array initializer.
Solution: Detect '}' in a better way. (Lech Lorens)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/misc1.c b/src/misc1.c index d69f12fd2..c7f2f8059 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -7945,8 +7945,7 @@ term_again: * 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 */ { |