summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-07-15 14:12:30 +0200
committerBram Moolenaar <Bram@vim.org>2011-07-15 14:12:30 +0200
commit50f42cadb1a5970d3a6b83d961e66fa486df8fcb (patch)
treebcdbc21d3f7bed8e47f9f201e304d480f76f461a /src/misc1.c
parent734d99804b42638ff25480dd8f8f477f2809cc7e (diff)
downloadvim-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.c3
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 */
{