0
0
mirror of https://github.com/vim/vim.git synced 2025-10-14 07:04:10 -04:00

patch 8.2.4121: Visual test fails on MS-Windows

Problem:    Visual test fails on MS-Windows.
Solution:   Set 'isprint' so that the character used is not printable.
This commit is contained in:
Bram Moolenaar
2022-01-17 17:52:22 +00:00
parent 9f8c304c8a
commit 262898ae43
2 changed files with 4 additions and 0 deletions

View File

@@ -1280,11 +1280,13 @@ endfunc
func Test_visual_block_append_invalid_char() func Test_visual_block_append_invalid_char()
" this was going over the end of the line " this was going over the end of the line
set isprint=@,161-255
new new
call setline(1, [' let xxx', 'xxxxxˆ', 'xxxxxxxxxxx']) call setline(1, [' let xxx', 'xxxxxˆ', 'xxxxxxxxxxx'])
exe "normal 0\<C-V>jjA-\<Esc>" exe "normal 0\<C-V>jjA-\<Esc>"
call assert_equal([' - let xxx', 'xxxxx -ˆ', 'xxxxxxxx-xxx'], getline(1, 3)) call assert_equal([' - let xxx', 'xxxxx -ˆ', 'xxxxxxxx-xxx'], getline(1, 3))
bwipe! bwipe!
set isprint&
endfunc endfunc
func Test_visual_reselect_with_count() func Test_visual_reselect_with_count()

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4121,
/**/ /**/
4120, 4120,
/**/ /**/