annotate src/testdir/test48.in @ 10881:8f6df2f6d2fc v8.0.0330

patch 8.0.0330: illegal memory access after "vapo" commit https://github.com/vim/vim/commit/84b2a381451e9068b09ef6d85f5e8cf1598e7355 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 17 11:40:00 2017 +0100 patch 8.0.0330: illegal memory access after "vapo" Problem: Illegal memory access after "vapo". (Dominique Pelle) Solution: Fix the cursor column.
author Christian Brabandt <cb@256bit.org>
date Fri, 17 Feb 2017 11:45:04 +0100
parents 9dc52b404c1b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 This is a test of 'virtualedit'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :set noswf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :set ve=all
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 -dgg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :" Insert "keyword keyw", ESC, C CTRL-N, shows "keyword ykeyword".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :" Repeating CTRL-N fixes it. (Mary Ellen Foster)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 2/w
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :" Using "C" then then <CR> moves the last remaining character to the next
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :" line. (Mary Ellen Foster)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 j^/are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 C are belong to vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :" When past the end of a line that ends in a single character "b" skips
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :" that word.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 ^$15lbC7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 :" Make sure 'i' works
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 $4li<-- should be 3 ' '
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 :" Make sure 'C' works
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 $4lC<-- should be 3 ' '
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 :" Make sure 'a' works
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 $4la<-- should be 4 ' '
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 :" Make sure 'A' works
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 $4lA<-- should be 0 ' '
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 :" Make sure 'D' works
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 $4lDi<-- 'D' should be intact
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 :" Test for yank bug reported by Mark Waggoner.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 :set ve=block
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 ^2w3jyGp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 :" Test "r" beyond the end of the line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 :set ve=all
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 /^"r"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 $5lrxa<-- should be 'x'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 :"
6468
9dc52b404c1b updated for version 7.4.563
Bram Moolenaar <bram@vim.org>
parents: 4013
diff changeset
47 :" Test "r" on a tab
9dc52b404c1b updated for version 7.4.563
Bram Moolenaar <bram@vim.org>
parents: 4013
diff changeset
48 :" Note that for this test, 'ts' must be 8 (the default).
9dc52b404c1b updated for version 7.4.563
Bram Moolenaar <bram@vim.org>
parents: 4013
diff changeset
49 ^5lrxA<-- should be ' x '
9dc52b404c1b updated for version 7.4.563
Bram Moolenaar <bram@vim.org>
parents: 4013
diff changeset
50 :"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 :" Test to make sure 'x' can delete control characters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 :set display=uhex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 ^xxxxxxi[This line should contain only the text between the brackets.]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 :set display=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 :" Test for ^Y/^E due to bad w_virtcol value, reported by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 :" Roy <royl@netropolis.net>.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 ^O3li4li4li <-- should show the name of a noted text editor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 ^o4li4li4li <-- and its version number-dd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 :"
4013
6834d6aeae09 updated for version 7.3.761
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
61 :" Test for yanking and pasting using the small delete register
6834d6aeae09 updated for version 7.3.761
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
62 gg/^foo
6834d6aeae09 updated for version 7.3.761
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
63 dewve"-p
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 :wq! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 ENDTEST
4013
6834d6aeae09 updated for version 7.3.761
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
66 foo, bar
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 keyword keyw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 all your base are belong to us
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 1 2 3 4 5 6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 'i'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 'C'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 'a'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 'A'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 'D'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 "r"
6468
9dc52b404c1b updated for version 7.4.563
Bram Moolenaar <bram@vim.org>
parents: 4013
diff changeset
79 "r"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 ab sd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 abcv6efi.him0kl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83