From 060b8384888ce91b1bc194101091d0f9f85d0490 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 19 Oct 2022 14:48:14 +0100 Subject: [PATCH] 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. --- src/testdir/test_mapping.vim | 6 +++++- src/version.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) 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, /**/ -- 2.40.0