diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-27 23:12:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-27 23:12:36 +0200 |
commit | ec12d6490923fb5ff147ebf7e28d32f2b4977e3b (patch) | |
tree | 5f01d51f1c7162af3a4794bfd0e4403264b49a1e /src/testdir/test_put.vim | |
parent | f52f9ea8f5fb3df51a308c56f2bf66f735ef3ca7 (diff) | |
download | vim-git-ec12d6490923fb5ff147ebf7e28d32f2b4977e3b.tar.gz |
patch 8.1.0119: failing test goes unnoticed because messages is not writtenv8.1.0119
Problem: Failing test goes unnoticed because testdir/messages is not
written.
Solution: Set 'nomodifiable' only local to the buffer.
Diffstat (limited to 'src/testdir/test_put.vim')
-rw-r--r-- | src/testdir/test_put.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_put.vim b/src/testdir/test_put.vim index e425c44f9..61b74297f 100644 --- a/src/testdir/test_put.vim +++ b/src/testdir/test_put.vim @@ -62,7 +62,7 @@ endfunc func Test_put_fails_when_nomodifiable() new - set nomodifiable + setlocal nomodifiable normal! yy call assert_fails(':put', 'E21') @@ -85,7 +85,7 @@ endfunc " output duplicate error messages when invoked in a non-modifiable buffer. func Test_put_p_errmsg_nodup() new - set nomodifiable + setlocal nomodifiable normal! yy |