mirror of
https://github.com/neovim/neovim.git
synced 2024-12-22 04:05:09 -07:00
test(old): use Q -> gQ mapping instead of changing test when possible
This commit is contained in:
parent
d07a39c54b
commit
936c11f9c8
@ -30,6 +30,10 @@ set switchbuf=
|
||||
mapclear
|
||||
mapclear!
|
||||
|
||||
" Make "Q" switch to Ex mode.
|
||||
" This does not work for all tests.
|
||||
nnoremap Q gQ
|
||||
|
||||
" Prevent Nvim log from writing to stderr.
|
||||
let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log'
|
||||
|
||||
|
@ -140,7 +140,7 @@ func Test_substitute_repeat()
|
||||
" This caused an invalid memory access.
|
||||
split Xfile
|
||||
s/^/x
|
||||
call feedkeys("gQsc\<CR>y", 'tx')
|
||||
call feedkeys("Qsc\<CR>y", 'tx')
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
|
@ -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 gQsleep 100m\rvi\r"
|
||||
exe "normal Qsleep 100m\rvi\r"
|
||||
call timer_stop(timer)
|
||||
endfunc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user