diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-12-03 04:26:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-03 04:26:00 +0800 |
| commit | 10c50d9f30138e7811789ba1c62f4c520cf04c8f (patch) | |
| tree | 6be3628f7d152c1f703f59fa1050039c90244707 /src/nvim/testdir/test_normal.vim | |
| parent | 07e6296520fc83b1fdb287b5173494cdd0e9136f (diff) | |
| parent | afb3ff52ecafe2d5bd1239869124794bb2ac68b9 (diff) | |
| download | rneovim-10c50d9f30138e7811789ba1c62f4c520cf04c8f.tar.gz rneovim-10c50d9f30138e7811789ba1c62f4c520cf04c8f.tar.bz2 rneovim-10c50d9f30138e7811789ba1c62f4c520cf04c8f.zip | |
Merge pull request #21266 from zeertzjq/vim-8.2.3889
vim-patch:8.2.3889,9.0.{0805,0990}
Diffstat (limited to 'src/nvim/testdir/test_normal.vim')
| -rw-r--r-- | src/nvim/testdir/test_normal.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim index d9b392992f..9c5cc51f79 100644 --- a/src/nvim/testdir/test_normal.vim +++ b/src/nvim/testdir/test_normal.vim @@ -658,6 +658,18 @@ func Test_opfunc_callback() END " call CheckScriptSuccess(lines) + " setting 'opfunc' to a script local function outside of a script context + " should fail + let cleanup =<< trim END + call writefile([execute('messages')], 'Xtest.out') + qall + END + call writefile(cleanup, 'Xverify.vim') + call RunVim([], [], "-c \"set opfunc=s:abc\" -S Xverify.vim") + call assert_match('E81: Using <SID> not in a', readfile('Xtest.out')[0]) + call delete('Xtest.out') + call delete('Xverify.vim') + " cleanup set opfunc& delfunc OpFunc1 |