]> granicus.if.org Git - vim/commitdiff
patch 8.1.1858: test for multi-byte mapping fails on some systems v8.1.1858
authorBram Moolenaar <Bram@vim.org>
Fri, 16 Aug 2019 18:56:03 +0000 (20:56 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 16 Aug 2019 18:56:03 +0000 (20:56 +0200)
Problem:    Test for multi-byte mapping fails on some systems.
Solution:   Test in another way.

src/testdir/test_mapping.vim
src/version.c

index b189296b536aed0955adc37b1c4d2a0a946c66b8..6b9fb9ca1a86e05b22b9429423c713661ed02a0e 100644 (file)
@@ -241,7 +241,7 @@ endfunc
 
 func Test_map_meta_multibyte()
   imap <M-á> foo
-  call assert_equal('foo', maparg("\<M-á>", 'i'))
+  call assert_match('i  <M-á>\s*foo', execute('imap'))
   iunmap <M-á>
 endfunc
 
index 5bd944dfc11be7d334daed5111ac20ef0dacd170..ee4bb90e5fdf6dc84cc4e695fbf95c5704f92a78 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1858,
 /**/
     1857,
 /**/