forked from aniani/vim
patch 8.2.0293: various Ex commands not sufficiently tested
Problem: Various Ex commands not sufficiently tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes #5673)
This commit is contained in:
@@ -2721,3 +2721,13 @@ func Test_normal_cpo_minus()
|
||||
let &cpo = save_cpo
|
||||
close!
|
||||
endfunc
|
||||
|
||||
" Test for using : to run a multi-line Ex command in operator pending mode
|
||||
func Test_normal_yank_with_excmd()
|
||||
new
|
||||
call setline(1, ['foo', 'bar', 'baz'])
|
||||
let @a = ''
|
||||
call feedkeys("\"ay:if v:true\<CR>normal l\<CR>endif\<CR>", 'xt')
|
||||
call assert_equal('f', @a)
|
||||
close!
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user