summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c3
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;