]> granicus.if.org Git - vim/commitdiff
patch 8.2.4121: Visual test fails on MS-Windows v8.2.4121
authorBram Moolenaar <Bram@vim.org>
Mon, 17 Jan 2022 17:52:22 +0000 (17:52 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 17 Jan 2022 17:52:22 +0000 (17:52 +0000)
Problem:    Visual test fails on MS-Windows.
Solution:   Set 'isprint' so that the character used is not printable.

src/testdir/test_visual.vim
src/version.c

index 9ca0fa9c8e742c2dba3511602bf4519709954588..b438fa1e66c612ff8495b241025ee2a4060fcf27 100644 (file)
@@ -1280,11 +1280,13 @@ endfunc
 
 func Test_visual_block_append_invalid_char()
   " this was going over the end of the line
+  set isprint=@,161-255
   new
   call setline(1, ['      let xxx', 'xxxxx\88', 'xxxxxxxxxxx'])
   exe "normal 0\<C-V>jjA-\<Esc>"
   call assert_equal([' -   let xxx', 'xxxxx   -\88', 'xxxxxxxx-xxx'], getline(1, 3))
   bwipe!
+  set isprint&
 endfunc
 
 func Test_visual_reselect_with_count()
index 6fda77e93257b0b27eb43f570f7ce61953943378..bc75522484c00bbdb4452cb2b8e8b9897a83360a 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4121,
 /**/
     4120,
 /**/