Mercurial > vim
changeset 14204:1b9f3932a130 v8.1.0119
patch 8.1.0119: failing test goes unnoticed because messages is not written
commit https://github.com/vim/vim/commit/ec12d6490923fb5ff147ebf7e28d32f2b4977e3b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 27 23:12:36 2018 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 27 Jun 2018 23:15:05 +0200 |
parents | f5c110d0bb26 |
children | e973612f8fef |
files | src/testdir/test_put.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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