diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-12 14:36:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-12 14:36:05 +0800 |
| commit | 8b75ca734541a42bf0d3f3fd8e39e94662084895 (patch) | |
| tree | 688fb3b654823d7579964495fb4c5af58f7e7bd8 /src/nvim/testdir/test_vimscript.vim | |
| parent | 540d1af90e2276a8bd3b5edb1a63c8225a1aa423 (diff) | |
| parent | 1abdb3224b177078b046873dadb81381960ad52b (diff) | |
| download | rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.tar.gz rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.tar.bz2 rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.zip | |
Merge pull request #19332 from zeertzjq/vim-8.2.0270
vim-patch:8.2.{0270,2732}
Diffstat (limited to 'src/nvim/testdir/test_vimscript.vim')
| -rw-r--r-- | src/nvim/testdir/test_vimscript.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_vimscript.vim b/src/nvim/testdir/test_vimscript.vim index c933f2443e..1bca5c420c 100644 --- a/src/nvim/testdir/test_vimscript.vim +++ b/src/nvim/testdir/test_vimscript.vim @@ -1857,6 +1857,16 @@ func Test_deep_nest() call delete('Xscript') endfunc +" Test for <sfile>, <slnum> in a function {{{1 +func Test_sfile_in_function() + func Xfunc() + call assert_match('..Test_sfile_in_function\[5]..Xfunc', expand('<sfile>')) + call assert_equal('2', expand('<slnum>')) + endfunc + call Xfunc() + delfunc Xfunc +endfunc + func Test_for_over_string() let res = '' for c in 'aéc̀d' |