diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-11 22:00:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-11 22:00:11 +0100 |
commit | 05c00c038bc16e862e17f9e5c8d5a72af6cf7788 (patch) | |
tree | 4c7015c7adc01116b60c8a6b19f71d7335f38b93 /src/testdir/test_channel.vim | |
parent | 5a6698169d10833abad88c98e5a332ddde5d110d (diff) | |
download | vim-git-05c00c038bc16e862e17f9e5c8d5a72af6cf7788.tar.gz |
patch 8.1.0897: can modify a:000 when using a referencev8.1.0897
Problem: Can modify a:000 when using a reference.
Solution: Make check for locked variable stricter. (Ozaki Kiichi,
closes #3930)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index e26311539..67163e606 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -2062,9 +2062,9 @@ func Test_job_tty_in_out() for in_opt in in_opts let x = copy(in_opt) for out_opt in out_opts - call extend(x, out_opt) + let x = extend(copy(x), out_opt) for err_opt in err_opts - call extend(x, err_opt) + let x = extend(copy(x), err_opt) let opts += [extend({'pty': 1}, x)] endfor endfor |