1
0
forked from aniani/vim

patch 9.0.1457: no regression test for what patch 9.0.1333 fixes

Problem:    No regression test for what patch 9.0.1333 fixes.
Solution:   Extend existing test to cover the fixed problem. (issue #11930)
This commit is contained in:
Bram Moolenaar
2023-04-16 17:17:37 +01:00
parent 657b31fa3b
commit ceff9cd1bb
2 changed files with 5 additions and 3 deletions

View File

@@ -1555,15 +1555,15 @@ func Test_map_script_cmd_redo()
let lines =<< trim END
vim9script
export def Func()
normal! dd
normal! V
enddef
END
call writefile(lines, 'Xmapcmd/script.vim')
new
call setline(1, ['one', 'two', 'three', 'four'])
call setline(1, ['one', 'two', 'three', 'four', 'five'])
nnoremap j j
source Xmapcmd/plugin.vim
call feedkeys("d\<F3>j.", 'xt')
call feedkeys("d\<F3>j.j.", 'xt')
call assert_equal(['two', 'four'], getline(1, '$'))
ounmap <F3>