mirror of
https://github.com/vim/vim.git
synced 2025-10-15 07:14:09 -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:
@@ -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()
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user