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.
ec12d64909
This commit is contained in:
Jan Edmund Lazo 2019-04-01 21:48:06 -04:00
parent 773086388d
commit d00e913ea6

View File

@ -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