patch 8.0.0256: missing changes to one file breaks test
Problem: Tests fail because some changes were not included.
Solution: Add changes to evalfunc.c
diff --git a/src/evalfunc.c b/src/evalfunc.c
index a3441a0..6706fe1 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -10136,20 +10136,15 @@
pos.col = 0;
if (name[0] == '.' && name[1] == NUL)
{
- /* set cursor */
- if (fnum == curbuf->b_fnum)
+ /* set cursor; "fnum" is ignored */
+ curwin->w_cursor = pos;
+ if (curswant >= 0)
{
- curwin->w_cursor = pos;
- if (curswant >= 0)
- {
- curwin->w_curswant = curswant - 1;
- curwin->w_set_curswant = FALSE;
- }
- check_cursor();
- rettv->vval.v_number = 0;
+ curwin->w_curswant = curswant - 1;
+ curwin->w_set_curswant = FALSE;
}
- else
- EMSG(_(e_invarg));
+ check_cursor();
+ rettv->vval.v_number = 0;
}
else if (name[0] == '\'' && name[1] != NUL && name[2] == NUL)
{