# HG changeset patch # User Bram Moolenaar # Date 1642348804 -3600 # Node ID 1af5263a4509c77369f6b224081266df41954b78 # Parent c0268b922df186b2d8c65b0a5536cead45d601e3 patch 8.2.4113: typo on DOCMD_RANGEOK results in not recognizing command Commit: https://github.com/vim/vim/commit/dc98776f89689846466462767be75c6b63b6630f Author: Bram Moolenaar 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) diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim --- a/src/testdir/test_mapping.vim +++ b/src/testdir/test_mapping.vim @@ -1411,6 +1411,22 @@ func Test_map_script_cmd_restore() 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