changeset 12759:528b227051f8 v8.0.1257

patch 8.0.1257: no test for fix of undefined behavior commit https://github.com/vim/vim/commit/2973daafe1732963b8924cb9df53c608804d66b3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 2 23:15:40 2017 +0100 patch 8.0.1257: no test for fix of undefined behavior Problem: No test for fix of undefined behavior. Solution: Add a test. (closes https://github.com/vim/vim/issues/2255)
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Nov 2017 23:30:05 +0100
parents 248eaeef3fa3
children 12964eaed961
files src/testdir/test_search.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1257,
+/**/
     1256,
 /**/
     1255,