From 29efd54e0284727a7dde5608e5eedaef9c00c65f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 15 Apr 2023 18:19:47 +0800 Subject: 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) https://github.com/vim/vim/commit/70c41241c2701f26a99085e433925a206ca265a3 Co-authored-by: Bram Moolenaar --- test/old/testdir/test_scriptnames.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') diff --git a/test/old/testdir/test_scriptnames.vim b/test/old/testdir/test_scriptnames.vim index d804684722..06ae305ab7 100644 --- a/test/old/testdir/test_scriptnames.vim +++ b/test/old/testdir/test_scriptnames.vim @@ -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, $"{l[-1].sid}_") - call assert_equal(g:loaded_script_id, '' . l[-1].sid . '_') + call assert_equal(g:loaded_script_id, $"{l[-1].sid}_") call delete('Xscript') endfunc -- cgit