From: Bram Moolenaar Date: Wed, 19 Oct 2022 13:48:14 +0000 (+0100) Subject: patch 9.0.0796: mapping test fails in some situations X-Git-Tag: v9.0.0796 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=060b8384888ce91b1bc194101091d0f9f85d0490;p=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. --- diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim index 58a5d9590..4212731f3 100644 --- a/src/testdir/test_mapping.vim +++ b/src/testdir/test_mapping.vim @@ -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 … diff --git a/src/version.c b/src/version.c index a5855b81f..7ee612d58 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 796, /**/ 795, /**/