forked from aniani/vim
patch 8.2.1260: there is no good test for CursorHold
Problem: There is no good test for CursorHold.
Solution: Add a test. Remove duplicated test. (Yegappan Lakshmanan,
closes #6503
This commit is contained in:
@@ -2506,24 +2506,6 @@ func Test_normal47_visual_buf_wipe()
|
||||
set nomodified
|
||||
endfunc
|
||||
|
||||
func Test_normal47_autocmd()
|
||||
" disabled, does not seem to be possible currently
|
||||
throw "Skipped: not possible to test cursorhold autocmd while waiting for input in normal_cmd"
|
||||
new
|
||||
call append(0, repeat('-',20))
|
||||
au CursorHold * call feedkeys('2l', '')
|
||||
1
|
||||
set updatetime=20
|
||||
" should delete 12 chars (d12l)
|
||||
call feedkeys('d1', '!')
|
||||
call assert_equal('--------', getline(1))
|
||||
|
||||
" clean up
|
||||
au! CursorHold
|
||||
set updatetime=4000
|
||||
bw!
|
||||
endfunc
|
||||
|
||||
func Test_normal48_wincmd()
|
||||
new
|
||||
exe "norm! \<c-w>c"
|
||||
|
||||
Reference in New Issue
Block a user