aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-02-09 02:10:57 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-02-09 02:10:57 -0500
commit7c2b2ea9c93d8ecce433edd22488d8222d5496fb (patch)
treef7328f37bbf82a87490b9de3a64339f1bf55470d /src/nvim/testdir
parentb9701c2a2b7b4633e894ad62955e0a0039dc0f95 (diff)
parent70ab19822184b5ffb630e238f10a6a45121bb15c (diff)
downloadrneovim-7c2b2ea9c93d8ecce433edd22488d8222d5496fb.tar.gz
rneovim-7c2b2ea9c93d8ecce433edd22488d8222d5496fb.tar.bz2
rneovim-7c2b2ea9c93d8ecce433edd22488d8222d5496fb.zip
Merge pull request #4178 from watiko/vim-7.4.708
vim-patch:7.4.{708,717}
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test55.in11
-rw-r--r--src/nvim/testdir/test55.ok3
2 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test55.in b/src/nvim/testdir/test55.in
index 7b6f684caa..9e3c1168cc 100644
--- a/src/nvim/testdir/test55.in
+++ b/src/nvim/testdir/test55.in
@@ -442,6 +442,17 @@ let l = [0, 1, 2, 3]
:unlockvar 1 b:
:unlet! b:testvar
:"
+:$put ='No :let += of locked list variable:'
+:let l = ['a', 'b', 3]
+:lockvar 1 l
+:try
+: let l += ['x']
+: $put ='did :let +='
+:catch
+: $put =v:exception[:14]
+:endtry
+:$put =string(l)
+:"
:unlet l
:let l = [1, 2, 3, 4]
:lockvar! l
diff --git a/src/nvim/testdir/test55.ok b/src/nvim/testdir/test55.ok
index 4e0303c26e..607a95ead9 100644
--- a/src/nvim/testdir/test55.ok
+++ b/src/nvim/testdir/test55.ok
@@ -144,6 +144,9 @@ No extend() of write-protected scope-level variable:
Vim(put):E742:
No :unlet of variable in locked scope:
Vim(unlet):E741:
+No :let += of locked list variable:
+Vim(let):E741:
+['a', 'b', 3]
[1, 2, 3, 4]
[1, 2, 3, 4]
[1, 2, 3, 4]