From: Bram Moolenaar Date: Sun, 16 Jan 2022 15:52:35 +0000 (+0000) Subject: patch 8.2.4113: typo on DOCMD_RANGEOK results in not recognizing command X-Git-Tag: v8.2.4113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc98776f89689846466462767be75c6b63b6630f;p=vim 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 #9539) --- diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim index 2d878d27b..b170b580d 100644 --- 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