Mercurial > vim
comparison src/testdir/test_mapping.vim @ 27169:1af5263a4509 v8.2.4113
patch 8.2.4113: typo on DOCMD_RANGEOK results in not recognizing command
Commit: https://github.com/vim/vim/commit/dc98776f89689846466462767be75c6b63b6630f
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Jan 2022 17:00:04 +0100 |
parents | 67194006cad8 |
children | 165a799b4129 |
comparison
equal
deleted
inserted
replaced
27168:c0268b922df1 | 27169:1af5263a4509 |
---|---|
1409 | 1409 |
1410 nunmap <F3> | 1410 nunmap <F3> |
1411 unlet g:result | 1411 unlet g:result |
1412 endfunc | 1412 endfunc |
1413 | 1413 |
1414 func Test_map_script_cmd_finds_func() | |
1415 let lines =<< trim END | |
1416 vim9script | |
1417 onoremap <F3> <ScriptCmd>Func()<CR> | |
1418 def Func() | |
1419 g:func_called = 'yes' | |
1420 enddef | |
1421 END | |
1422 call CheckScriptSuccess(lines) | |
1423 call feedkeys("y\<F3>\<Esc>", 'xtc') | |
1424 call assert_equal('yes', g:func_called) | |
1425 | |
1426 ounmap <F3> | |
1427 unlet g:func_called | |
1428 endfunc | |
1429 | |
1414 " Test for using <script> with a map to remap characters in rhs | 1430 " Test for using <script> with a map to remap characters in rhs |
1415 func Test_script_local_remap() | 1431 func Test_script_local_remap() |
1416 new | 1432 new |
1417 inoremap <buffer> <SID>xyz mno | 1433 inoremap <buffer> <SID>xyz mno |
1418 inoremap <buffer> <script> abc st<SID>xyzre | 1434 inoremap <buffer> <script> abc st<SID>xyzre |