# HG changeset patch # User Bram Moolenaar # Date 1666188003 -7200 # Node ID ae3970cc28cb24102f765f6aa4f6e87d17fc444e # Parent bbc069df8597bed95cf291eb1d0bdc3e2e763434 patch 9.0.0796: mapping test fails in some situations Commit: https://github.com/vim/vim/commit/060b8384888ce91b1bc194101091d0f9f85d0490 Author: Bram Moolenaar Date: Wed Oct 19 14:48:14 2022 +0100 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 --- 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 --- 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,