From 4ad5b245f0eba86ea5091d9e344e136af6f4ebec Mon Sep 17 00:00:00 2001 From: Florian Walch Date: Wed, 24 Dec 2014 14:32:42 +0100 Subject: vim-patch:7.4.541 Problem: Crash when doing a range assign. Solution: Check for NULL poiter. (Yukihiro Nakadaira) https://code.google.com/p/vim/source/detail?r=v7-4-541 --- src/nvim/testdir/test55.in | 5 +++++ src/nvim/testdir/test55.ok | 1 + 2 files changed, 6 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test55.in b/src/nvim/testdir/test55.in index 140cb7c0e5..c4e82d429c 100644 --- a/src/nvim/testdir/test55.in +++ b/src/nvim/testdir/test55.in @@ -401,6 +401,11 @@ let l = [0, 1, 2, 3] : $put =v:exception[:15] . v:exception[-1:-1] :endtry :$put =string(d) +:" +:" test for range assign +:let l = [0] +:let l[:] = [1, 2] +:$put =string(l) :endfun :" :call Test(1, 2, [3, 4], {5: 6}) " This may take a while diff --git a/src/nvim/testdir/test55.ok b/src/nvim/testdir/test55.ok index e8560de401..ba029b2898 100644 --- a/src/nvim/testdir/test55.ok +++ b/src/nvim/testdir/test55.ok @@ -129,6 +129,7 @@ caught a:000[3] {'a': {'b': 'B'}} Vim(call):E737: a {'a': {'b': 'B'}} +[1, 2] Vim(foldopen):E490: -- cgit