diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-08-22 13:15:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-22 13:15:13 +0100 |
commit | f768c3d19c518822d89dec4cc3947ddeea249316 (patch) | |
tree | 5653c5bbaa38515ba7401fed81da6972971a260e /src/testdir/test_vim9_import.vim | |
parent | e89aeed43e6eca1bda5379cf9b437bce3bc56628 (diff) |
patch 9.0.0244: cannot easily get the list of sourced scriptsv9.0.0244
Problem: Cannot easily get the list of sourced scripts.
Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan,
closes #10957)
Diffstat (limited to 'src/testdir/test_vim9_import.vim')
-rw-r--r-- | src/testdir/test_vim9_import.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_import.vim b/src/testdir/test_vim9_import.vim index f28b4adef3..4cc53b2c26 100644 --- a/src/testdir/test_vim9_import.vim +++ b/src/testdir/test_vim9_import.vim @@ -732,6 +732,8 @@ def Test_use_relative_autoload_import_in_mapping() source Xmapscript.vim assert_match('\d\+ A: .*XrelautoloadExport.vim', execute('scriptnames')->split("\n")[-1]) + assert_match('XrelautoloadExport.vim$', getscriptinfo()[-1].name) + assert_true(getscriptinfo()[-1].autoload) feedkeys("\<F3>", "xt") assert_equal(42, g:result) |