diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-01 21:48:06 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-01 21:48:35 -0400 |
commit | d00e913ea6482111ed0e29bc699486be5a627781 (patch) | |
tree | b5531efbe305076189199976fcfc6a9c7667a119 /src | |
parent | 773086388d3d03a288f4b9407a467223011e5347 (diff) | |
download | rneovim-d00e913ea6482111ed0e29bc699486be5a627781.tar.gz rneovim-d00e913ea6482111ed0e29bc699486be5a627781.tar.bz2 rneovim-d00e913ea6482111ed0e29bc699486be5a627781.zip |
vim-patch:8.1.0119: failing test goes unnoticed because messages is not written
Problem: Failing test goes unnoticed because testdir/messages is not
written.
Solution: Set 'nomodifiable' only local to the buffer.
https://github.com/vim/vim/commit/ec12d6490923fb5ff147ebf7e28d32f2b4977e3b
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_put.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_put.vim b/src/nvim/testdir/test_put.vim index 6a7b2b2d93..43a5d18cb3 100644 --- a/src/nvim/testdir/test_put.vim +++ b/src/nvim/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 |