Skip to content

Commit

Permalink
patch 8.1.0119: failing test goes unnoticed because messages is not w…
Browse files Browse the repository at this point in the history
…ritten

Problem:    Failing test goes unnoticed because testdir/messages is not
            written.
Solution:   Set 'nomodifiable' only local to the buffer.
  • Loading branch information
brammool committed Jun 27, 2018
1 parent f52f9ea commit ec12d64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/testdir/test_put.vim
Expand Up @@ -62,7 +62,7 @@ endfunc

func Test_put_fails_when_nomodifiable()
new
set nomodifiable
setlocal nomodifiable

normal! yy
call assert_fails(':put', 'E21')
Expand All @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -789,6 +789,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
119,
/**/
118,
/**/
Expand Down

0 comments on commit ec12d64

Please sign in to comment.