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)
diff --git a/src/normal.c b/src/normal.c
index 673cac8..89eaabc 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -7427,7 +7427,7 @@
// 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 @@
static void
nv_drop(cmdarg_T *cap UNUSED)
{
- do_put('~', BACKWARD, 1L, PUT_CURSEND);
+ do_put('~', NULL, BACKWARD, 1L, PUT_CURSEND);
}
#endif