comparison src/vim9cmds.c @ 28055:5bf3ed75e26c v8.2.4552

patch 8.2.4552: in a :def function "put = expr" does not work Commit: https://github.com/vim/vim/commit/d0b7bfa95798f5ec743d8afffbffb83aeac823da Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 12 14:51:16 2022 +0000 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 https://github.com/vim/vim/issues/9936)
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Mar 2022 16:00:03 +0100
parents 9f8535cf6f1b
children 8a80c48bd103
comparison
equal deleted inserted replaced
28054:b31d4f3d2af9 28055:5bf3ed75e26c
1765 1765
1766 eap->regname = *line; 1766 eap->regname = *line;
1767 1767
1768 if (eap->regname == '=') 1768 if (eap->regname == '=')
1769 { 1769 {
1770 char_u *p = line + 1; 1770 char_u *p = skipwhite(line + 1);
1771 1771
1772 if (compile_expr0(&p, cctx) == FAIL) 1772 if (compile_expr0(&p, cctx) == FAIL)
1773 return NULL; 1773 return NULL;
1774 line = p; 1774 line = p;
1775 } 1775 }