0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.1637: Vim9: :put ={expr} does not work inside :def function

Problem:    Vim9: :put ={expr} does not work inside :def function.
Solution:   Add ISN_PUT. (closes #6397)
This commit is contained in:
Bram Moolenaar
2020-09-08 22:45:35 +02:00
parent 6defa7bf0a
commit c3516f7e45
12 changed files with 158 additions and 13 deletions

View File

@@ -7427,7 +7427,7 @@ nv_put_opt(cmdarg_T *cap, int fix_indent)
// May have been reset in do_put().
VIsual_active = TRUE;
}
do_put(cap->oap->regname, dir, cap->count1, flags);
do_put(cap->oap->regname, NULL, dir, cap->count1, flags);
// If a register was saved, put it back now.
if (reg2 != NULL)
@@ -7500,7 +7500,7 @@ nv_nbcmd(cmdarg_T *cap)
static void
nv_drop(cmdarg_T *cap UNUSED)
{
do_put('~', BACKWARD, 1L, PUT_CURSEND);
do_put('~', NULL, BACKWARD, 1L, PUT_CURSEND);
}
#endif