1
0
forked from aniani/vim

updated for version 7.3.249

Problem:    Wrong indenting for array initializer.
Solution:   Detect '}' in a better way. (Lech Lorens)
This commit is contained in:
Bram Moolenaar
2011-07-15 14:12:30 +02:00
parent 734d99804b
commit 50f42cadb1
4 changed files with 58 additions and 2 deletions

View File

@@ -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 */
{