if (trypos != NULL)
{
curwin->w_cursor.lnum = trypos->lnum + 1;
+ curwin->w_cursor.col = 0;
continue;
}
if (trypos != NULL)
{
curwin->w_cursor.lnum = trypos->lnum + 1;
+ curwin->w_cursor.col = 0;
continue;
}
}
if ((trypos = find_start_comment(ind_maxcomment)) != NULL)
{
curwin->w_cursor.lnum = trypos->lnum + 1;
+ curwin->w_cursor.col = 0;
continue;
}
{
if (find_last_paren(l, '{', '}') && (trypos =
find_start_brace(ind_maxcomment)) != NULL)
+ {
curwin->w_cursor.lnum = trypos->lnum + 1;
+ curwin->w_cursor.col = 0;
+ }
continue;
}
* case xx: if ( asdf &&
* asdf)
*/
- curwin->w_cursor.lnum = trypos->lnum;
+ curwin->w_cursor = *trypos;
l = ml_get_curline();
if (cin_iscase(l) || cin_isscopedecl(l))
{
++curwin->w_cursor.lnum;
+ curwin->w_cursor.col = 0;
continue;
}
}
if (*l == NUL || l[STRLEN(l) - 1] != '\\')
break;
--curwin->w_cursor.lnum;
+ curwin->w_cursor.col = 0;
}
}
* case xx: if ( asdf &&
* asdf)
*/
- curwin->w_cursor.lnum = trypos->lnum;
+ curwin->w_cursor = *trypos;
l = ml_get_curline();
if (cin_iscase(l) || cin_isscopedecl(l))
{
++curwin->w_cursor.lnum;
+ curwin->w_cursor.col = 0;
continue;
}
}
&& (trypos = find_start_brace(ind_maxcomment))
!= NULL) /* XXX */
{
- curwin->w_cursor.lnum = trypos->lnum;
+ curwin->w_cursor = *trypos;
/* if not "else {" check for terminated again */
/* but skip block for "} else {" */
l = cin_skipcomment(ml_get_curline());
if (*l == '}' || !cin_iselse(l))
goto term_again;
++curwin->w_cursor.lnum;
+ curwin->w_cursor.col = 0;
}
}
}
if ((trypos = find_start_comment(ind_maxcomment)) != NULL)
{
curwin->w_cursor.lnum = trypos->lnum + 1;
+ curwin->w_cursor.col = 0;
continue;
}
if (find_last_paren(l, '(', ')')
&& (trypos = find_match_paren(ind_maxparen,
ind_maxcomment)) != NULL)
- curwin->w_cursor.lnum = trypos->lnum;
+ curwin->w_cursor = *trypos;
/* For a line ending in ',' that is a continuation line go
* back to the first line with a backslash:
if (*l == NUL || l[STRLEN(l) - 1] != '\\')
break;
--curwin->w_cursor.lnum;
+ curwin->w_cursor.col = 0;
}
amount = get_indent(); /* XXX */
if ((trypos = find_match_paren(ind_maxparen,
ind_maxcomment)) != NULL)
- curwin->w_cursor.lnum = trypos->lnum;
+ curwin->w_cursor = *trypos;
amount = get_indent(); /* XXX */
break;
}