0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.0153

This commit is contained in:
Bram Moolenaar
2005-10-03 21:52:09 +00:00
parent 69e0ff94dc
commit bb15b65864
13 changed files with 130 additions and 22 deletions

View File

@@ -3984,14 +3984,15 @@ find_decl(ptr, len, locally, thisblock, searchflags)
{
setpcmark(); /* Set in findpar() otherwise */
curwin->w_cursor.lnum = 1;
par_pos = curwin->w_cursor;
}
else
{
par_pos = curwin->w_cursor;
while (curwin->w_cursor.lnum > 1 && *skipwhite(ml_get_curline()) != NUL)
--curwin->w_cursor.lnum;
}
curwin->w_cursor.col = 0;
par_pos = curwin->w_cursor;
/* Search forward for the identifier, ignore comment lines. */
found_pos.lnum = 0;