aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-15 18:19:47 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-15 19:01:19 +0800
commit29efd54e0284727a7dde5608e5eedaef9c00c65f (patch)
tree554379340ed6b2f2383f72acde55388d58fa4c1f /test
parentef9af89da753235c64cbd8b7d700c686bc94dad7 (diff)
downloadrneovim-29efd54e0284727a7dde5608e5eedaef9c00c65f.tar.gz
rneovim-29efd54e0284727a7dde5608e5eedaef9c00c65f.tar.bz2
rneovim-29efd54e0284727a7dde5608e5eedaef9c00c65f.zip
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 <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_scriptnames.vim4
1 files changed, 1 insertions, 3 deletions
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, $"<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