From dc98776f89689846466462767be75c6b63b6630f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 16 Jan 2022 15:52:35 +0000 Subject: [PATCH] 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) --- src/testdir/test_mapping.vim | 16 ++++++++++++++++ src/version.c | 2 ++ src/vim.h | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim index 2d878d27b9..b170b580dc 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