0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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
This commit is contained in:
Bram Moolenaar 2017-01-28 18:31:41 +01:00
parent f13e00b2cf
commit 3a29abcb61
2 changed files with 9 additions and 12 deletions

View File

@ -10136,20 +10136,15 @@ f_setpos(typval_T *argvars, typval_T *rettv)
pos.col = 0; pos.col = 0;
if (name[0] == '.' && name[1] == NUL) if (name[0] == '.' && name[1] == NUL)
{ {
/* set cursor */ /* set cursor; "fnum" is ignored */
if (fnum == curbuf->b_fnum) curwin->w_cursor = pos;
if (curswant >= 0)
{ {
curwin->w_cursor = pos; curwin->w_curswant = curswant - 1;
if (curswant >= 0) curwin->w_set_curswant = FALSE;
{
curwin->w_curswant = curswant - 1;
curwin->w_set_curswant = FALSE;
}
check_cursor();
rettv->vval.v_number = 0;
} }
else check_cursor();
EMSG(_(e_invarg)); rettv->vval.v_number = 0;
} }
else if (name[0] == '\'' && name[1] != NUL && name[2] == NUL) else if (name[0] == '\'' && name[1] != NUL && name[2] == NUL)
{ {

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
256,
/**/ /**/
255, 255,
/**/ /**/