diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-10-03 21:52:09 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-10-03 21:52:09 +0000 |
commit | bb15b658647d8eca01e67df871f7cb5ed95e2534 (patch) | |
tree | 6214d5476e5b780728462e5832306a9050bef26b /src/normal.c | |
parent | 69e0ff94dce3a017feafbd0bb60e5720cda0441b (diff) | |
download | vim-git-bb15b658647d8eca01e67df871f7cb5ed95e2534.tar.gz |
updated for version 7.0153
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/normal.c b/src/normal.c index 1e645e447..73c4cfd00 100644 --- a/src/normal.c +++ b/src/normal.c @@ -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; |