We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d22e946 commit 8067a64Copy full SHA for 8067a64
1 file changed
src/testdir/test_ex_undo.vim
@@ -0,0 +1,19 @@
1
+" Tests for :undo
2
+
3
+func Test_ex_undo()
4
+ new ex-undo
5
+ setlocal ul=10
6
+ exe "normal ione\n\<Esc>"
7
8
+ exe "normal itwo\n\<Esc>"
9
10
+ exe "normal ithree\n\<Esc>"
11
+ call assert_equal(4, line('$'))
12
+ undo
13
+ call assert_equal(3, line('$'))
14
+ undo 1
15
+ call assert_equal(2, line('$'))
16
+ undo 0
17
+ call assert_equal(1, line('$'))
18
+ quit!
19
+endfunc
0 commit comments