aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_ex_undo.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-10-08 17:07:20 +0200
committerJustin M. Keyes <justinkz@gmail.com>2016-10-08 17:17:43 +0200
commit19840728228f66c7f2af88dfc4bcecc26ffa064b (patch)
tree1b86d1d337ec9a97908d4b8bf3d48f4c439e54a6 /src/nvim/testdir/test_ex_undo.vim
parent31f6334aa8f8093ddfd2fd3ecf9fc438ad62a792 (diff)
parent7bc86b2bbc6800bc47a981ce86c906259020aa70 (diff)
downloadrneovim-19840728228f66c7f2af88dfc4bcecc26ffa064b.tar.gz
rneovim-19840728228f66c7f2af88dfc4bcecc26ffa064b.tar.bz2
rneovim-19840728228f66c7f2af88dfc4bcecc26ffa064b.zip
Merge #5428 'vim-patch: 0c1ff16, 939a1ab, 8067a64'.
Diffstat (limited to 'src/nvim/testdir/test_ex_undo.vim')
-rw-r--r--src/nvim/testdir/test_ex_undo.vim19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ex_undo.vim b/src/nvim/testdir/test_ex_undo.vim
new file mode 100644
index 0000000000..44feb3680a
--- /dev/null
+++ b/src/nvim/testdir/test_ex_undo.vim
@@ -0,0 +1,19 @@
+" Tests for :undo
+
+func Test_ex_undo()
+ new ex-undo
+ setlocal ul=10
+ exe "normal ione\n\<Esc>"
+ setlocal ul=10
+ exe "normal itwo\n\<Esc>"
+ setlocal ul=10
+ exe "normal ithree\n\<Esc>"
+ call assert_equal(4, line('$'))
+ undo
+ call assert_equal(3, line('$'))
+ undo 1
+ call assert_equal(2, line('$'))
+ undo 0
+ call assert_equal(1, line('$'))
+ quit!
+endfunc