1
0
forked from aniani/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)
This commit is contained in:
Bram Moolenaar
2022-01-16 15:52:35 +00:00
parent d9b74a2a41
commit dc98776f89
3 changed files with 19 additions and 1 deletions

View File

@@ -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 <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