Mercurial > vim
annotate src/testdir/test_ex_undo.vim @ 32029:23e8d0371e35 v9.0.1346
patch 9.0.1346: Starlark files are not recognized
Commit: https://github.com/vim/vim/commit/ca06b30073de22dc120b532e90fbee2a10ef9772
Author: Amaan Qureshi <amaanq12@gmail.com>
Date: Thu Feb 23 15:38:49 2023 +0000
patch 9.0.1346: Starlark files are not recognized
Problem: Starlark files are not recognized.
Solution: Add patterns for Starlark files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12049)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Feb 2023 16:45:03 +0100 |
parents | 08940efa6b4e |
children |
rev | line source |
---|---|
8570
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Tests for :undo |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 func Test_ex_undo() |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 new ex-undo |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 setlocal ul=10 |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 exe "normal ione\n\<Esc>" |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 setlocal ul=10 |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 exe "normal itwo\n\<Esc>" |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 setlocal ul=10 |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 exe "normal ithree\n\<Esc>" |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 call assert_equal(4, line('$')) |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 undo |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 call assert_equal(3, line('$')) |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 undo 1 |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 call assert_equal(2, line('$')) |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 undo 0 |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 call assert_equal(1, line('$')) |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 quit! |
52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 endfunc |
21765
08940efa6b4e
patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents:
8570
diff
changeset
|
20 |
08940efa6b4e
patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents:
8570
diff
changeset
|
21 " vim: shiftwidth=2 sts=2 expandtab |