To: vim_dev@googlegroups.com Subject: Patch 8.2.4113 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 Func() + def Func() + g:func_called = 'yes' + enddef + END + call CheckScriptSuccess(lines) + call feedkeys("y\\", 'xtc') + call assert_equal('yes', g:func_called) + + ounmap + unlet g:func_called + endfunc + " Test for using