comparison src/misc1.c @ 2953:9f71f5a526af v7.3.249

updated for version 7.3.249 Problem: Wrong indenting for array initializer. Solution: Detect '}' in a better way. (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Fri, 15 Jul 2011 14:12:30 +0200
parents 493897f8bf90
children aa998de9f959
comparison
equal deleted inserted replaced
2952:e87a2f7c97fe 2953:9f71f5a526af
7943 7943
7944 /* 7944 /*
7945 * If we're at the end of a block, skip to the start of 7945 * If we're at the end of a block, skip to the start of
7946 * that block. 7946 * that block.
7947 */ 7947 */
7948 curwin->w_cursor.col = 0; 7948 if (find_last_paren(l, '{', '}')
7949 if (*cin_skipcomment(l) == '}'
7950 && (trypos = find_start_brace(ind_maxcomment)) 7949 && (trypos = find_start_brace(ind_maxcomment))
7951 != NULL) /* XXX */ 7950 != NULL) /* XXX */
7952 { 7951 {
7953 curwin->w_cursor = *trypos; 7952 curwin->w_cursor = *trypos;
7954 /* if not "else {" check for terminated again */ 7953 /* if not "else {" check for terminated again */