Mercurial > vim
annotate src/testdir/test_listlbr.ok @ 10674:d6857a8dc07e v8.0.0227
patch 8.0.0227: crash with ff=dos when first line in file has no CR
commit https://github.com/vim/vim/commit/2aa5f696b91a51f29873e340de4bdc182e1e8dd4
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 24 15:46:48 2017 +0100
patch 8.0.0227: crash with ff=dos when first line in file has no CR
Problem: Crash when 'fileformat' is forced to "dos" and the first line in
the file is empty and does not have a CR character.
Solution: Don't check for CR before the start of the buffer.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Jan 2017 16:00:05 +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 ~ |