]> granicus.if.org Git - vim/commitdiff
patch 8.1.0119: failing test goes unnoticed because messages is not written v8.1.0119
authorBram Moolenaar <Bram@vim.org>
Wed, 27 Jun 2018 21:12:36 +0000 (23:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 Jun 2018 21:12:36 +0000 (23:12 +0200)
Problem:    Failing test goes unnoticed because testdir/messages is not
            written.
Solution:   Set 'nomodifiable' only local to the buffer.

src/testdir/test_put.vim
src/version.c

index e425c44f9f766b207e1451431dbab2a9c6d9b636..61b74297ffff1a1f1e5ecf7d8ff2e6a729214982 100644 (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
 
index ff3806af86a602c2dd6e9f97b16f35f035943055..a7a96b396a97ebde78479753b363007b785d085c 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    119,
 /**/
     118,
 /**/