mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.4552: in a :def function "put = expr" does not work
Problem: In a :def function "put = expr" does not work. Solution: Skip over white space. (closes #9936)
This commit is contained in:
parent
bbf84e2737
commit
d0b7bfa957
@ -1217,7 +1217,7 @@ def Test_put_command()
|
||||
:2put =['a', 'b', 'c']
|
||||
assert_equal(['ppp', 'a', 'b', 'c', 'above'], getline(2, 6))
|
||||
|
||||
:0put ='first'
|
||||
:0put = 'first'
|
||||
assert_equal('first', getline(1))
|
||||
:1put! ='first again'
|
||||
assert_equal('first again', getline(1))
|
||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4552,
|
||||
/**/
|
||||
4551,
|
||||
/**/
|
||||
|
@ -1767,7 +1767,7 @@ compile_put(char_u *arg, exarg_T *eap, cctx_T *cctx)
|
||||
|
||||
if (eap->regname == '=')
|
||||
{
|
||||
char_u *p = line + 1;
|
||||
char_u *p = skipwhite(line + 1);
|
||||
|
||||
if (compile_expr0(&p, cctx) == FAIL)
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user