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 58a5d95..4212731 100644
--- a/src/testdir/test_mapping.vim
+++ b/src/testdir/test_mapping.vim
@@ -478,8 +478,12 @@
\ 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 a5855b8..7ee612d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 796,
+/**/
795,
/**/
794,