• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Révision1af5263a4509c77369f6b224081266df41954b78 (tree)
l'heure2022-01-17 01:00:04
AuteurBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Message de Log

patch 8.2.4113: typo on DOCMD_RANGEOK results in not recognizing command

Commit: https://github.com/vim/vim/commit/dc98776f89689846466462767be75c6b63b6630f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 16 15:52:35 2022 +0000

patch 8.2.4113: typo on DOCMD_RANGEOK results in not recognizing command
Problem: Typo on DOCMD_RANGEOK results in not recognizing command.
Solution: Correct the typo. (closes https://github.com/vim/vim/issues/9539)

Change Summary

Modification

diff -r c0268b922df1 -r 1af5263a4509 src/testdir/test_mapping.vim
--- a/src/testdir/test_mapping.vim Sun Jan 16 16:15:03 2022 +0100
+++ b/src/testdir/test_mapping.vim Sun Jan 16 17:00:04 2022 +0100
@@ -1411,6 +1411,22 @@
14111411 unlet g:result
14121412 endfunc
14131413
1414+func Test_map_script_cmd_finds_func()
1415+ let lines =<< trim END
1416+ vim9script
1417+ onoremap <F3> <ScriptCmd>Func()<CR>
1418+ def Func()
1419+ g:func_called = 'yes'
1420+ enddef
1421+ END
1422+ call CheckScriptSuccess(lines)
1423+ call feedkeys("y\<F3>\<Esc>", 'xtc')
1424+ call assert_equal('yes', g:func_called)
1425+
1426+ ounmap <F3>
1427+ unlet g:func_called
1428+endfunc
1429+
14141430 " Test for using <script> with a map to remap characters in rhs
14151431 func Test_script_local_remap()
14161432 new
diff -r c0268b922df1 -r 1af5263a4509 src/version.c
--- a/src/version.c Sun Jan 16 16:15:03 2022 +0100
+++ b/src/version.c Sun Jan 16 17:00:04 2022 +0100
@@ -751,6 +751,8 @@
751751 static int included_patches[] =
752752 { /* Add new patch number below this line */
753753 /**/
754+ 4113,
755+/**/
754756 4112,
755757 /**/
756758 4111,
diff -r c0268b922df1 -r 1af5263a4509 src/vim.h
--- a/src/vim.h Sun Jan 16 16:15:03 2022 +0100
+++ b/src/vim.h Sun Jan 16 17:00:04 2022 +0100
@@ -1074,7 +1074,7 @@
10741074 #define DOCMD_KEYTYPED 0x08 // don't reset KeyTyped
10751075 #define DOCMD_EXCRESET 0x10 // reset exception environment (for debugging)
10761076 #define DOCMD_KEEPLINE 0x20 // keep typed line for repeating with "."
1077-#define DOCMD_RANGEOK 0240 // can use a range without ":" in Vim9 script
1077+#define DOCMD_RANGEOK 0x40 // can use a range without ":" in Vim9 script
10781078
10791079 // flags for beginline()
10801080 #define BL_WHITE 1 // cursor on first non-white in the line
Afficher sur ancien navigateur de dépôt.