patch 9.1.1405: tests: no test for mapping with special keys in session file

Commit: 
https://github.com/vim/vim/commit/9ff1e598e8ee373b5623219ed38ad49470ec7938
Author: zeertzjq <zeert...@outlook.com>
Date:   Fri May 23 17:16:17 2025 +0200

    patch 9.1.1405: tests: no test for mapping with special keys in session file
    
    Problem:  tests: no test for mapping with special keys in session file.
    Solution: Add a special keys to an existing test.  Also test with UTF-8
              characters containing 0x80 or 0x9b bytes (zeertzjq).
    
    closes: #17360
    
    Signed-off-by: zeertzjq <zeert...@outlook.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_mksession.vim b/src/testdir/test_mksession.vim
index 72a9376c3..bbb42f94c 100644
--- a/src/testdir/test_mksession.vim
+++ b/src/testdir/test_mksession.vim
@@ -1153,10 +1153,10 @@ endfunc
 func Test_mkvimrc()
   let entries = [
         \ ['', 'nothing', '<Nop>'],
-        \ ['n', 'normal', 'NORMAL'],
-        \ ['v', 'visual', 'VISUAL'],
-        \ ['s', 'select', 'SELECT'],
-        \ ['x', 'visualonly', 'VISUALONLY'],
+        \ ['n', 'normal', 'NORMAL<Up>'],
+        \ ['v', 'visual', 'VISUAL<S-Down>'],
+        \ ['s', 'select', 'SELECT<C-Left>'],
+        \ ['x', 'visualonly', 'VISUALONLY<M-Right>'],
         \ ['o', 'operator', 'OPERATOR'],
         \ ['i', 'insert', 'INSERT'],
         \ ['l', 'lang', 'LANG'],
diff --git a/src/testdir/test_mksession_utf8.vim 
b/src/testdir/test_mksession_utf8.vim
index 36cb38bea..387d128f6 100644
--- a/src/testdir/test_mksession_utf8.vim
+++ b/src/testdir/test_mksession_utf8.vim
@@ -103,12 +103,19 @@ func Test_mksession_utf8()
 endfunc
 
 func Test_session_multibyte_mappings()
-
-  " some characters readily available on european keyboards
+  " some characters readily available on european keyboards,
+  " as well as characters containing 0x80 or 0x9b bytes
   let entries = [
+        \ ['n', 'ç', 'ç'],
+        \ ['n', 'º', 'º'],
+        \ ['n', '¡', '¡'],
         \ ['n', '<M-ç>', '<M-ç>'],
         \ ['n', '<M-º>', '<M-º>'],
         \ ['n', '<M-¡>', '<M-¡>'],
+        \ ['n', '…', 'ě'],
+        \ ['n', 'ě', '…'],
+        \ ['n', '<M-…>', '<M-ě>'],
+        \ ['n', '<M-ě>', '<M-…>'],
         \ ]
   for entry in entries
     exe entry[0] .. 'map ' .. entry[1] .. ' ' .. entry[2]
diff --git a/src/version.c b/src/version.c
index 9cecc0be8..c45c65e7b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1405,
 /**/
     1404,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1uIULb-00AwIB-9N%40256bit.org.

Raspunde prin e-mail lui