Patch 8.2.4113

8 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 16, 2022, 10:53:11 AM1/16/22
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages