Patch 8.2.4113
Problem: Typo on DOCMD_RANGEOK results in not recognizing command.
Solution: Correct the typo. (closes #9539)
Files: src/vim.h, src/testdir/test_mapping.vim
*** ../vim-8.2.4112/src/vim.h 2022-01-07 20:01:04.060733978 +0000
--- src/vim.h 2022-01-16 15:36:06.574381603 +0000
***************
*** 1074,1080 ****
#define DOCMD_KEYTYPED 0x08 // don't reset KeyTyped
#define DOCMD_EXCRESET 0x10 // reset exception environment (for
debugging)
#define DOCMD_KEEPLINE 0x20 // keep typed line for repeating with "."
! #define DOCMD_RANGEOK 0240 // can use a range without ":" in Vim9 script
// flags for beginline()
#define BL_WHITE 1 // cursor on first non-white in the line
--- 1074,1080 ----
#define DOCMD_KEYTYPED 0x08 // don't reset KeyTyped
#define DOCMD_EXCRESET 0x10 // reset exception environment (for
debugging)
#define DOCMD_KEEPLINE 0x20 // keep typed line for repeating with "."
! #define DOCMD_RANGEOK 0x40 // can use a range without ":" in Vim9 script
// flags for beginline()
#define BL_WHITE 1 // cursor on first non-white in the line
*** ../vim-8.2.4112/src/testdir/test_mapping.vim 2022-01-16
13:30:29.877688041 +0000
--- src/testdir/test_mapping.vim 2022-01-16 15:43:06.245879626 +0000
***************
*** 1411,1416 ****
--- 1411,1432 ----
unlet g:result
endfunc
+ func Test_map_script_cmd_finds_func()
+ let lines =<< trim END
+ vim9script
+ onoremap <F3> <ScriptCmd>Func()<CR>
+ def Func()
+ g:func_called = 'yes'
+ enddef
+ END
+ call CheckScriptSuccess(lines)
+ call feedkeys("y\<F3>\<Esc>", 'xtc')
+ call assert_equal('yes', g:func_called)
+
+ ounmap <F3>
+ unlet g:func_called
+ endfunc
+
" Test for using <script> with a map to remap characters in rhs
func Test_script_local_remap()
new
*** ../vim-8.2.4112/src/version.c 2022-01-16 15:00:04.936316085 +0000
--- src/version.c 2022-01-16 15:37:20.306299490 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4113,
/**/
--
DEAD PERSON: I don't want to go in the cart!
CUSTOMER: Oh, don't be such a baby.
MORTICIAN: I can't take him...
DEAD PERSON: I feel fine!
CUSTOMER: Oh, do us a favor...
MORTICIAN: I can't.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220116155304.C665F1C038E%40moolenaar.net.