Mercurial > vim
comparison src/testdir/test_edit.vim @ 34944:1e6f45f5ca23 v9.1.0329
patch 9.1.0329: String interpolation fails for Dict type
Commit: https://github.com/vim/vim/commit/f01493c55062c01b1cdf9b1e946577f4d1bdddf3
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Apr 14 23:21:02 2024 +0200
patch 9.1.0329: String interpolation fails for Dict type
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: #14529
closes: #14541
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 14 Apr 2024 23:30:04 +0200 |
parents | b20609f4ab37 |
children | ddd5eaa2c0dc |
comparison
equal
deleted
inserted
replaced
34943:33548337b8f8 | 34944:1e6f45f5ca23 |
---|---|
1960 func Test_edit_ctrl_r_failed() | 1960 func Test_edit_ctrl_r_failed() |
1961 CheckRunVimInTerminal | 1961 CheckRunVimInTerminal |
1962 | 1962 |
1963 let buf = RunVimInTerminal('', #{rows: 6, cols: 60}) | 1963 let buf = RunVimInTerminal('', #{rows: 6, cols: 60}) |
1964 | 1964 |
1965 " trying to insert a dictionary produces an error | 1965 " trying to insert a blob produces an error |
1966 call term_sendkeys(buf, "i\<C-R>={}\<CR>") | 1966 call term_sendkeys(buf, "i\<C-R>=0z\<CR>") |
1967 | 1967 |
1968 " ending Insert mode should put the cursor back on the ':' | 1968 " ending Insert mode should put the cursor back on the ':' |
1969 call term_sendkeys(buf, ":\<Esc>") | 1969 call term_sendkeys(buf, ":\<Esc>") |
1970 call VerifyScreenDump(buf, 'Test_edit_ctlr_r_failed_1', {}) | 1970 call VerifyScreenDump(buf, 'Test_edit_ctlr_r_failed_1', {}) |
1971 | 1971 |