1
0
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:
Bram Moolenaar
2022-10-19 14:48:14 +01:00
parent 11df3aeee5
commit 060b838488
2 changed files with 7 additions and 1 deletions

View File

@@ -478,8 +478,12 @@ func Test_list_mappings()
\ execute('nmap ,n')->trim()->split("\n"))
" 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\\+$",
\ execute('verbose map ,n')->trim()->split("\n")[1])
\ lines[index])
" character with K_SPECIAL byte in rhs
nmap foo

View File

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