Mercurial > vim
annotate src/testdir/test_listlbr.ok @ 10644:2025bec9175f v8.0.0212
patch 8.0.0212: buffer for key name may be too small
commit https://github.com/vim/vim/commit/423977d3cebac2be1158b1d11da60fe96db4b750
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 22 15:05:12 2017 +0100
patch 8.0.0212: buffer for key name may be too small
Problem: The buffer used to store a key name theoreticaly could be too
small. (Coverity)
Solution: Count all possible modifier characters. Add a check for the
length just in case.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 22 Jan 2017 15:15:04 +0100 |
parents | 68f2cac6b0db |
children |
rev | line source |
---|---|
6026 | 1 |
6062 | 2 abcdef hijklmn pqrstuvwxyz_1060ABCDEFGHIJKLMNOP |
6026 | 3 |
4 Test 1: set linebreak | |
5 abcdef | |
6 +hijklmn | |
6062 | 7 +pqrstuvwxyz_1060ABC |
6026 | 8 +DEFGHIJKLMNOP |
9 | |
10 Test 2: set linebreak + set list | |
11 ^Iabcdef hijklmn^I | |
6062 | 12 +pqrstuvwxyz_1060ABC |
6026 | 13 +DEFGHIJKLMNOP |
14 | |
15 | |
6062 | 16 Test 3: set linebreak nolist |
6026 | 17 abcdef |
18 +hijklmn | |
6062 | 19 +pqrstuvwxyz_1060ABC |
6026 | 20 +DEFGHIJKLMNOP |
21 1 aaaaaaaaaaaaaaaaaa | |
22 | |
6062 | 23 Test 4: set linebreak with tab and 1 line as long as screen: should break! |
6026 | 24 1 |
25 +aaaaaaaaaaaaaaaaaa | |
26 ~ | |
27 ~ | |
6172 | 28 _S_ bla |
29 | |
30 Test 5: set linebreak with conceal and set list and tab displayed by different char (line may not be truncated) | |
31 Sabbbbbb bla | |
32 ~ | |
33 ~ | |
34 ~ | |
6866 | 35 Test 6: set linebreak with visual block mode |
6266 | 36 this not |
37 aaaaaaaaaaaaa | |
38 REMOVE: | |
39 REMOVE: | |
6866 | 40 Test 7: set linebreak with visual block mode and v_b_A |
41 long line: foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar TARGETx at end | |
42 Test 8: set linebreak with visual char mode and changing block | |
43 1111-2222-1111-11-1111-2222-1111 | |
6961 | 44 Test 9: using redo after block visual mode |
45 | |
46 AaA | |
47 AaA | |
48 A | |
7001 | 49 Test 10: using normal commands after block-visual |
50 | |
51 abcdpqrs | |
7143
fe6d525d12f4
commit https://github.com/vim/vim/commit/10ad1d90da8c464e1bf08bf23d92d4888378a8a1
Christian Brabandt <cb@256bit.org>
parents:
7001
diff
changeset
|
52 Test 11: using block replace mode after wrapping |
fe6d525d12f4
commit https://github.com/vim/vim/commit/10ad1d90da8c464e1bf08bf23d92d4888378a8a1
Christian Brabandt <cb@256bit.org>
parents:
7001
diff
changeset
|
53 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0aaa |
fe6d525d12f4
commit https://github.com/vim/vim/commit/10ad1d90da8c464e1bf08bf23d92d4888378a8a1
Christian Brabandt <cb@256bit.org>
parents:
7001
diff
changeset
|
54 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0aaa |
7344
68f2cac6b0db
commit https://github.com/vim/vim/commit/9bc01ebb957d2b30d57bd30d7aee6f1df2a336b0
Christian Brabandt <cb@256bit.org>
parents:
7143
diff
changeset
|
55 Test 12: set linebreak list listchars=space:_,tab:>-,tail:-,eol:$ |
68f2cac6b0db
commit https://github.com/vim/vim/commit/9bc01ebb957d2b30d57bd30d7aee6f1df2a336b0
Christian Brabandt <cb@256bit.org>
parents:
7143
diff
changeset
|
56 a aaaaaaaaaaaaaaaaaaaaaa a |
68f2cac6b0db
commit https://github.com/vim/vim/commit/9bc01ebb957d2b30d57bd30d7aee6f1df2a336b0
Christian Brabandt <cb@256bit.org>
parents:
7143
diff
changeset
|
57 |
68f2cac6b0db
commit https://github.com/vim/vim/commit/9bc01ebb957d2b30d57bd30d7aee6f1df2a336b0
Christian Brabandt <cb@256bit.org>
parents:
7143
diff
changeset
|
58 Test 12: set linebreak list listchars=space:_,tab:>-,tail:-,eol:$ |
68f2cac6b0db
commit https://github.com/vim/vim/commit/9bc01ebb957d2b30d57bd30d7aee6f1df2a336b0
Christian Brabandt <cb@256bit.org>
parents:
7143
diff
changeset
|
59 a_ |
68f2cac6b0db
commit https://github.com/vim/vim/commit/9bc01ebb957d2b30d57bd30d7aee6f1df2a336b0
Christian Brabandt <cb@256bit.org>
parents:
7143
diff
changeset
|
60 aaaaaaaaaaaaaaaaaaaa |
68f2cac6b0db
commit https://github.com/vim/vim/commit/9bc01ebb957d2b30d57bd30d7aee6f1df2a336b0
Christian Brabandt <cb@256bit.org>
parents:
7143
diff
changeset
|
61 aa>-----a-$ |
68f2cac6b0db
commit https://github.com/vim/vim/commit/9bc01ebb957d2b30d57bd30d7aee6f1df2a336b0
Christian Brabandt <cb@256bit.org>
parents:
7143
diff
changeset
|
62 ~ |