annotate src/testdir/test_marks.in @ 7570:4250ecde6009 v7.4.1085

commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 10 20:21:57 2016 +0100 patch 7.4.1085 Problem: The CTRL-A and CTRL-X commands do not update the '[ and '] marks. Solution: (Yukihiro Nakadaira)
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jan 2016 20:30:04 +0100
parents 3c312e259c79
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6622
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for marks.
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :" test that a deleted mark is restored after delete-undo-redo-undo
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :/^\t/+1
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :set nocp viminfo+=nviminfo
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 madduu
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :let a = string(getpos("'a"))
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :$put ='Mark after delete-undo-redo-undo: '.a
7570
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
11 :''
6622
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 ENDTEST
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 textline A
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 textline B
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 textline C
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17
7570
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
18 STARTTEST
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
19 :" test that CTRL-A and CTRL-X updates last changed mark '[, '].
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
20 :/^123/
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
21 :execute "normal! \<C-A>`[v`]rAjwvjw\<C-X>`[v`]rX"
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
22 ENDTEST
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
23
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
24 CTRL-A CTRL-X:
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
25 123 123 123
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
26 123 123 123
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
27 123 123 123
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
28
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
29 STARTTEST
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
30 :g/^STARTTEST/.,/^ENDTEST/d
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
31 :wq! test.out
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
32 ENDTEST
4250ecde6009 commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents: 6622
diff changeset
33
6622
3c312e259c79 Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 Results: