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:
@@ -1555,15 +1555,15 @@ func Test_map_script_cmd_redo()
|
|||||||
let lines =<< trim END
|
let lines =<< trim END
|
||||||
vim9script
|
vim9script
|
||||||
export def Func()
|
export def Func()
|
||||||
normal! dd
|
normal! V
|
||||||
enddef
|
enddef
|
||||||
END
|
END
|
||||||
call writefile(lines, 'Xmapcmd/script.vim')
|
call writefile(lines, 'Xmapcmd/script.vim')
|
||||||
new
|
new
|
||||||
call setline(1, ['one', 'two', 'three', 'four'])
|
call setline(1, ['one', 'two', 'three', 'four', 'five'])
|
||||||
nnoremap j j
|
nnoremap j j
|
||||||
source Xmapcmd/plugin.vim
|
source Xmapcmd/plugin.vim
|
||||||
call feedkeys("d\<F3>j.", 'xt')
|
call feedkeys("d\<F3>j.j.", 'xt')
|
||||||
call assert_equal(['two', 'four'], getline(1, '$'))
|
call assert_equal(['two', 'four'], getline(1, '$'))
|
||||||
|
|
||||||
ounmap <F3>
|
ounmap <F3>
|
||||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1457,
|
||||||
/**/
|
/**/
|
||||||
1456,
|
1456,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user