aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-12-22 04:41:11 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-12-22 04:41:11 +0100
commit64248e64a0d49d6781e2ab22d00f4155981a5c98 (patch)
tree763c3890fc98332db8aaebfa677b78cd2450e399 /src
parent138480939a6d696d77b866474bcdda054d8fbfa1 (diff)
downloadrneovim-64248e64a0d49d6781e2ab22d00f4155981a5c98.tar.gz
rneovim-64248e64a0d49d6781e2ab22d00f4155981a5c98.tar.bz2
rneovim-64248e64a0d49d6781e2ab22d00f4155981a5c98.zip
tests: sync Test_undojoin_redo from Vim #11589
This was not added in e0e482589 with Vim patch 8.0.0205.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_undo.vim12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_undo.vim b/src/nvim/testdir/test_undo.vim
index 4fd4ec4e62..adcdcb1cd9 100644
--- a/src/nvim/testdir/test_undo.vim
+++ b/src/nvim/testdir/test_undo.vim
@@ -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