0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.1-264

This commit is contained in:
Bram Moolenaar 2008-02-25 20:55:22 +00:00
parent 1015fde398
commit ddfc978f58
3 changed files with 20 additions and 5 deletions

View File

@ -6894,6 +6894,7 @@ get_c_indent()
if (trypos != NULL) if (trypos != NULL)
{ {
curwin->w_cursor.lnum = trypos->lnum + 1; curwin->w_cursor.lnum = trypos->lnum + 1;
curwin->w_cursor.col = 0;
continue; continue;
} }
@ -6954,6 +6955,7 @@ get_c_indent()
if (trypos != NULL) if (trypos != NULL)
{ {
curwin->w_cursor.lnum = trypos->lnum + 1; curwin->w_cursor.lnum = trypos->lnum + 1;
curwin->w_cursor.col = 0;
continue; continue;
} }
} }
@ -6991,6 +6993,7 @@ get_c_indent()
if ((trypos = find_start_comment(ind_maxcomment)) != NULL) if ((trypos = find_start_comment(ind_maxcomment)) != NULL)
{ {
curwin->w_cursor.lnum = trypos->lnum + 1; curwin->w_cursor.lnum = trypos->lnum + 1;
curwin->w_cursor.col = 0;
continue; continue;
} }
@ -7114,7 +7117,10 @@ get_c_indent()
{ {
if (find_last_paren(l, '{', '}') && (trypos = if (find_last_paren(l, '{', '}') && (trypos =
find_start_brace(ind_maxcomment)) != NULL) find_start_brace(ind_maxcomment)) != NULL)
{
curwin->w_cursor.lnum = trypos->lnum + 1; curwin->w_cursor.lnum = trypos->lnum + 1;
curwin->w_cursor.col = 0;
}
continue; continue;
} }
@ -7230,11 +7236,12 @@ get_c_indent()
* case xx: if ( asdf && * case xx: if ( asdf &&
* asdf) * asdf)
*/ */
curwin->w_cursor.lnum = trypos->lnum; curwin->w_cursor = *trypos;
l = ml_get_curline(); l = ml_get_curline();
if (cin_iscase(l) || cin_isscopedecl(l)) if (cin_iscase(l) || cin_isscopedecl(l))
{ {
++curwin->w_cursor.lnum; ++curwin->w_cursor.lnum;
curwin->w_cursor.col = 0;
continue; continue;
} }
} }
@ -7254,6 +7261,7 @@ get_c_indent()
if (*l == NUL || l[STRLEN(l) - 1] != '\\') if (*l == NUL || l[STRLEN(l) - 1] != '\\')
break; break;
--curwin->w_cursor.lnum; --curwin->w_cursor.lnum;
curwin->w_cursor.col = 0;
} }
} }
@ -7587,11 +7595,12 @@ term_again:
* case xx: if ( asdf && * case xx: if ( asdf &&
* asdf) * asdf)
*/ */
curwin->w_cursor.lnum = trypos->lnum; curwin->w_cursor = *trypos;
l = ml_get_curline(); l = ml_get_curline();
if (cin_iscase(l) || cin_isscopedecl(l)) if (cin_iscase(l) || cin_isscopedecl(l))
{ {
++curwin->w_cursor.lnum; ++curwin->w_cursor.lnum;
curwin->w_cursor.col = 0;
continue; continue;
} }
} }
@ -7652,13 +7661,14 @@ term_again:
&& (trypos = find_start_brace(ind_maxcomment)) && (trypos = find_start_brace(ind_maxcomment))
!= NULL) /* XXX */ != NULL) /* XXX */
{ {
curwin->w_cursor.lnum = trypos->lnum; curwin->w_cursor = *trypos;
/* if not "else {" check for terminated again */ /* if not "else {" check for terminated again */
/* but skip block for "} else {" */ /* but skip block for "} else {" */
l = cin_skipcomment(ml_get_curline()); l = cin_skipcomment(ml_get_curline());
if (*l == '}' || !cin_iselse(l)) if (*l == '}' || !cin_iselse(l))
goto term_again; goto term_again;
++curwin->w_cursor.lnum; ++curwin->w_cursor.lnum;
curwin->w_cursor.col = 0;
} }
} }
} }
@ -7727,6 +7737,7 @@ term_again:
if ((trypos = find_start_comment(ind_maxcomment)) != NULL) if ((trypos = find_start_comment(ind_maxcomment)) != NULL)
{ {
curwin->w_cursor.lnum = trypos->lnum + 1; curwin->w_cursor.lnum = trypos->lnum + 1;
curwin->w_cursor.col = 0;
continue; continue;
} }
@ -7777,7 +7788,7 @@ term_again:
if (find_last_paren(l, '(', ')') if (find_last_paren(l, '(', ')')
&& (trypos = find_match_paren(ind_maxparen, && (trypos = find_match_paren(ind_maxparen,
ind_maxcomment)) != NULL) ind_maxcomment)) != NULL)
curwin->w_cursor.lnum = trypos->lnum; curwin->w_cursor = *trypos;
/* For a line ending in ',' that is a continuation line go /* For a line ending in ',' that is a continuation line go
* back to the first line with a backslash: * back to the first line with a backslash:
@ -7791,6 +7802,7 @@ term_again:
if (*l == NUL || l[STRLEN(l) - 1] != '\\') if (*l == NUL || l[STRLEN(l) - 1] != '\\')
break; break;
--curwin->w_cursor.lnum; --curwin->w_cursor.lnum;
curwin->w_cursor.col = 0;
} }
amount = get_indent(); /* XXX */ amount = get_indent(); /* XXX */
@ -7864,7 +7876,7 @@ term_again:
if ((trypos = find_match_paren(ind_maxparen, if ((trypos = find_match_paren(ind_maxparen,
ind_maxcomment)) != NULL) ind_maxcomment)) != NULL)
curwin->w_cursor.lnum = trypos->lnum; curwin->w_cursor = *trypos;
amount = get_indent(); /* XXX */ amount = get_indent(); /* XXX */
break; break;
} }

View File

@ -692,6 +692,7 @@ op_reindent(oap, how)
} }
} }
++curwin->w_cursor.lnum; ++curwin->w_cursor.lnum;
curwin->w_cursor.col = 0; /* make sure it's valid */
} }
/* put cursor on first non-blank of indented line */ /* put cursor on first non-blank of indented line */

View File

@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
264,
/**/ /**/
263, 263,
/**/ /**/