1
0
forked from aniani/vim

patch 9.1.0335: String interpolation fails for List type

Problem:  String interpolation fails for List type
Solution: use implicit string(list) for string interpolation and :put =
          (Yegappan Lakshmanan)

related: #14529
closes: #14556

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2024-04-15 19:19:52 +02:00
committed by Christian Brabandt
parent a59e031aa0
commit bce51d9005
15 changed files with 160 additions and 33 deletions

View File

@@ -460,7 +460,7 @@ typedef struct {
// arguments to ISN_2STRING and ISN_2STRING_ANY
typedef struct {
int offset;
int tolerant;
int flags;
} tostring_T;
// arguments to ISN_2BOOL
@@ -880,3 +880,10 @@ typedef enum {
// flags for call_def_function()
#define DEF_USE_PT_ARGV 1 // use the partial arguments
// Flag used for conversion to string by may_generate_2STRING()
#define TOSTRING_NONE 0x0
// Convert a List to series of values separated by newline
#define TOSTRING_INTERPOLATE 0x1
// Convert a List to a textual representation of the list "[...]"
#define TOSTRING_TOLERANT 0x2