mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00
tests: sync Test_undojoin_redo from Vim #11589
This was not added in e0e482589
with Vim patch 8.0.0205.
This commit is contained in:

committed by
Justin M. Keyes

parent
138480939a
commit
64248e64a0
@@ -238,7 +238,17 @@ func Test_undojoin()
|
||||
call assert_equal(['aaaa', 'bbbb', 'cccc'], getline(2, '$'))
|
||||
call feedkeys("u", 'xt')
|
||||
call assert_equal(['aaaa'], getline(2, '$'))
|
||||
close!
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_undojoin_redo()
|
||||
new
|
||||
call setline(1, ['first line', 'second line'])
|
||||
call feedkeys("ixx\<Esc>", 'xt')
|
||||
call feedkeys(":undojoin | redo\<CR>", 'xt')
|
||||
call assert_equal('xxfirst line', getline(1))
|
||||
call assert_equal('second line', getline(2))
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
" undojoin not allowed after undo
|
||||
|
Reference in New Issue
Block a user