]> granicus.if.org Git - vim/commitdiff
patch 8.0.1257: no test for fix of undefined behavior v8.0.1257
authorBram Moolenaar <Bram@vim.org>
Thu, 2 Nov 2017 22:15:40 +0000 (23:15 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Nov 2017 22:15:40 +0000 (23:15 +0100)
Problem:    No test for fix of undefined behavior.
Solution:   Add a test. (closes #2255)

src/testdir/test_search.vim
src/version.c

index be8b9a4b71f789f5a4536bd02c33e2a0d41a8d9a..37661c31aeedbd3a8bfe1b705ae09847f1440811 100644 (file)
@@ -697,3 +697,7 @@ func Test_search_undefined_behaviour()
   call term_sendkeys(g:buf, ":qa!\<cr>")
   bwipe!
 endfunc
+
+func Test_search_undefined_behaviour2()
+  call search("\%UC0000000")
+endfunc
index e94b81a78e6260a7812a365dc054ba2330be7212..65f5a4b03ac3ee6915fb1dce412a93283d473b83 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1257,
 /**/
     1256,
 /**/