forked from aniani/vim
patch 9.0.0796: mapping test fails in some situations
Problem: Mapping test fails in some situations. Solution: Find the line with the verbose information.
This commit is contained in:
@@ -478,8 +478,12 @@ func Test_list_mappings()
|
|||||||
\ execute('nmap ,n')->trim()->split("\n"))
|
\ execute('nmap ,n')->trim()->split("\n"))
|
||||||
|
|
||||||
" verbose map
|
" verbose map
|
||||||
|
" first line might be "seen modifyOtherKeys"
|
||||||
|
let lines = execute('verbose map ,n')->trim()->split("\n")
|
||||||
|
let index = indexof(lines, 'v:val =~ "Last set"')
|
||||||
|
call assert_inrange(1, 2, index)
|
||||||
call assert_match("\tLast set from .*/test_mapping.vim line \\d\\+$",
|
call assert_match("\tLast set from .*/test_mapping.vim line \\d\\+$",
|
||||||
\ execute('verbose map ,n')->trim()->split("\n")[1])
|
\ lines[index])
|
||||||
|
|
||||||
" character with K_SPECIAL byte in rhs
|
" character with K_SPECIAL byte in rhs
|
||||||
nmap foo …
|
nmap foo …
|
||||||
|
@@ -695,6 +695,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 */
|
||||||
|
/**/
|
||||||
|
796,
|
||||||
/**/
|
/**/
|
||||||
795,
|
795,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user