0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2356: Vim9: ":put =expr" does not handle a list properly

Problem:    Vim9: ":put =expr" does not handle a list properly.
Solution:   Use the same logic as eval_to_string_eap(). (closes #7684)
This commit is contained in:
Bram Moolenaar
2021-01-15 18:04:43 +01:00
parent 97c6943e11
commit 883cf97f10
5 changed files with 47 additions and 26 deletions

View File

@@ -3357,7 +3357,7 @@ call_def_function(
expr = tv->vval.v_string;
else
{
expr = typval_tostring(tv); // allocates value
expr = typval2string(tv, TRUE); // allocates value
clear_tv(tv);
}
--ectx.ec_stack.ga_len;