test(old): change usage of Q to gQ

test(old) fix Test_ex_mode_count_overflow

test(old) change usage of Q to gQ
This commit is contained in:
Axel Dahlberg 2021-12-17 08:25:06 +01:00 committed by Gregory Anders
parent 684c782546
commit df50fb5859
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ endfunc
func Test_ex_mode_count_overflow()
" this used to cause a crash
let lines =<< trim END
call feedkeys("\<Esc>Q\<CR>")
call feedkeys("\<Esc>gQ\<CR>")
v9|9silent! vi|333333233333y32333333%O
call writefile(['done'], 'Xdidexmode')
qall!

View File

@ -137,7 +137,7 @@ func Test_substitute_repeat()
" This caused an invalid memory access.
split Xfile
s/^/x
call feedkeys("Qsc\<CR>y", 'tx')
call feedkeys("gQsc\<CR>y", 'tx')
bwipe!
endfunc

View File

@ -279,7 +279,7 @@ func Test_ex_mode()
endfunc
let timer = timer_start(40, function('g:Foo'), {'repeat':-1})
" This used to throw error E749.
exe "normal Qsleep 100m\rvi\r"
exe "normal gQsleep 100m\rvi\r"
call timer_stop(timer)
endfunc