From d00e913ea6482111ed0e29bc699486be5a627781 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 1 Apr 2019 21:48:06 -0400 Subject: 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 --- src/nvim/testdir/test_put.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit