mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 19:11:52 +00:00
vim-patch:8.2.4934: string interpolation fails when not evaluating
Problem: String interpolation fails when not evaluating.
Solution: Skip the expression when not evaluating. (closes vim/vim#10398)
70c41241c2
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -35,9 +35,7 @@ func Test_getscriptinfo()
|
||||
source Xscript
|
||||
let l = getscriptinfo()
|
||||
call assert_match('Xscript$', l[-1].name)
|
||||
" Nvim does not support interpolated strings yet.
|
||||
" call assert_equal(g:loaded_script_id, $"<SNR>{l[-1].sid}_")
|
||||
call assert_equal(g:loaded_script_id, '<SNR>' . l[-1].sid . '_')
|
||||
call assert_equal(g:loaded_script_id, $"<SNR>{l[-1].sid}_")
|
||||
call delete('Xscript')
|
||||
endfunc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user