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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user