From 9baa7ca37ff75921820fe5539f962a4e51f632ce Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 9 Nov 2017 11:10:40 +0100 Subject: test/oldtest: `count` is not special in Nvim #7407 --- src/nvim/testdir/test_unlet.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/testdir/test_unlet.vim') diff --git a/src/nvim/testdir/test_unlet.vim b/src/nvim/testdir/test_unlet.vim index f6705997a9..96ba752d9f 100644 --- a/src/nvim/testdir/test_unlet.vim +++ b/src/nvim/testdir/test_unlet.vim @@ -3,7 +3,7 @@ func Test_read_only() try " this caused a crash - unlet count + unlet v:count catch call assert_true(v:exception =~ ':E795:') endtry -- cgit From f407a94032ae7c3a78aa39c2de02e37d14a5f861 Mon Sep 17 00:00:00 2001 From: KunMing Xie Date: Sat, 17 Mar 2018 16:49:06 +0800 Subject: vim-patch:8.0.0344: unlet command leaks memory (#8141) Problem: Unlet command leaks memory. (Nikolai Pavlov) Solution: Free the memory on error. (closes vim/vim#1497) https://github.com/vim/vim/commit/49439c4cdf7d2822255f292adda4226656fe144d --- src/nvim/testdir/test_unlet.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/nvim/testdir/test_unlet.vim') diff --git a/src/nvim/testdir/test_unlet.vim b/src/nvim/testdir/test_unlet.vim index 96ba752d9f..3f06058d03 100644 --- a/src/nvim/testdir/test_unlet.vim +++ b/src/nvim/testdir/test_unlet.vim @@ -24,3 +24,7 @@ func Test_not_existing() call assert_true(v:exception =~ ':E108:') endtry endfunc + +func Test_unlet_fails() + call assert_fails('unlet v:["count"]', 'E46:') +endfunc -- cgit