mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
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:
committed by
Gregory Anders
parent
684c782546
commit
df50fb5859
@@ -85,7 +85,7 @@ endfunc
|
|||||||
func Test_ex_mode_count_overflow()
|
func Test_ex_mode_count_overflow()
|
||||||
" this used to cause a crash
|
" this used to cause a crash
|
||||||
let lines =<< trim END
|
let lines =<< trim END
|
||||||
call feedkeys("\<Esc>Q\<CR>")
|
call feedkeys("\<Esc>gQ\<CR>")
|
||||||
v9|9silent! vi|333333233333y32333333%O
|
v9|9silent! vi|333333233333y32333333%O
|
||||||
call writefile(['done'], 'Xdidexmode')
|
call writefile(['done'], 'Xdidexmode')
|
||||||
qall!
|
qall!
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ func Test_substitute_repeat()
|
|||||||
" This caused an invalid memory access.
|
" This caused an invalid memory access.
|
||||||
split Xfile
|
split Xfile
|
||||||
s/^/x
|
s/^/x
|
||||||
call feedkeys("Qsc\<CR>y", 'tx')
|
call feedkeys("gQsc\<CR>y", 'tx')
|
||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ func Test_ex_mode()
|
|||||||
endfunc
|
endfunc
|
||||||
let timer = timer_start(40, function('g:Foo'), {'repeat':-1})
|
let timer = timer_start(40, function('g:Foo'), {'repeat':-1})
|
||||||
" This used to throw error E749.
|
" This used to throw error E749.
|
||||||
exe "normal Qsleep 100m\rvi\r"
|
exe "normal gQsleep 100m\rvi\r"
|
||||||
call timer_stop(timer)
|
call timer_stop(timer)
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user