diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-19 14:48:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-19 14:48:14 +0100 |
commit | 060b8384888ce91b1bc194101091d0f9f85d0490 (patch) | |
tree | f340fa859a1e762d3ba464ba02a1c1984f7ed7a9 | |
parent | 11df3aeee548b959ccd4b9a4d3c44651eab6b3ce (diff) |
patch 9.0.0796: mapping test fails in some situationsv9.0.0796
Problem: Mapping test fails in some situations.
Solution: Find the line with the verbose information.
-rw-r--r-- | src/testdir/test_mapping.vim | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim index 58a5d95901..4212731f35 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 a5855b81fa..7ee612d589 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 796, +/**/ 795, /**/ 794, |