aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_expr.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-25 11:06:19 +0800
committerGitHub <noreply@github.com>2022-11-25 11:06:19 +0800
commite2a8ea76ea2f7d5e71441f0fac75df35caf85c03 (patch)
treebd7967ac22e346178e5a6af5448d3631efc3c33f /src/nvim/testdir/test_expr.vim
parent2b55d09314500c0049427cd51e873cc4eac223b2 (diff)
parent0482f53395e7b26016942bd8e5a173a7894a44a5 (diff)
downloadrneovim-e2a8ea76ea2f7d5e71441f0fac75df35caf85c03.tar.gz
rneovim-e2a8ea76ea2f7d5e71441f0fac75df35caf85c03.tar.bz2
rneovim-e2a8ea76ea2f7d5e71441f0fac75df35caf85c03.zip
Merge pull request #21185 from zeertzjq/vim-8.2.2466
vim-patch:8.2.{2466,2886},9.0.0936
Diffstat (limited to 'src/nvim/testdir/test_expr.vim')
-rw-r--r--src/nvim/testdir/test_expr.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_expr.vim b/src/nvim/testdir/test_expr.vim
index 9dbc923b96..f33358c59a 100644
--- a/src/nvim/testdir/test_expr.vim
+++ b/src/nvim/testdir/test_expr.vim
@@ -92,10 +92,11 @@ func Test_getreg_empty_list()
let y = x
call add(x, 'foo')
call assert_equal(['foo'], y)
+ call assert_fails('call getreg([])', 'E730:')
endfunc
func Test_loop_over_null_list()
- let null_list = submatch(1, 1)
+ let null_list = v:_null_list
for i in null_list
call assert_report('should not get here')
endfor