mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 13:26:06 +00:00
vim-patch:9.1.0335: String interpolation fails for List type (#28364)
Problem: String interpolation fails for List type
Solution: use implicit string(list) for string interpolation and :put =
(Yegappan Lakshmanan)
related: vim/vim#14529
closes: vim/vim#14556
bce51d9005
Cherry-pick eval_to_string_eap() from patch 8.2.1914.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -88,7 +88,7 @@ char *eval_one_expr_in_str(char *p, garray_T *gap, bool evaluate)
|
||||
}
|
||||
if (evaluate) {
|
||||
*block_end = NUL;
|
||||
char *expr_val = eval_to_string(block_start, true);
|
||||
char *expr_val = eval_to_string(block_start, false);
|
||||
*block_end = '}';
|
||||
if (expr_val == NULL) {
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user