mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
vim-patch:9.1.0329: String interpolation fails for Dict type (#28335)
Problem: String interpolation fails for Dict type
Solution: Support Dict data type properly, also support :put =Dict
(without having to convert it to string() first)
(Yegappan Lakshmanan)
fixes: vim/vim#14529
closes: vim/vim#14541
f01493c550
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -56,20 +56,20 @@ describe('edit', function()
|
||||
{1:~ }|*4
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('={}')
|
||||
feed('=0z')
|
||||
screen:expect([[
|
||||
{18:"} |
|
||||
{1:~ }|*4
|
||||
={16:{}}^ |
|
||||
={26:0}{9:z}^ |
|
||||
]])
|
||||
-- trying to insert a dictionary produces an error
|
||||
-- trying to insert a blob produces an error
|
||||
feed('<CR>')
|
||||
screen:expect([[
|
||||
{18:"} |
|
||||
{1:~ }|
|
||||
{3: }|
|
||||
={16:{}} |
|
||||
{9:E731: Using a Dictionary as a String} |
|
||||
={26:0}{9:z} |
|
||||
{9:E976: Using a Blob as a String} |
|
||||
{6:Press ENTER or type command to continue}^ |
|
||||
]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user