Skip to content

Commit 1c57fe8

Browse files
committed
patch 7.4.963
Problem: test_listlbr_utf8 sometimes fails. Solution: Don't use a literal multibyte character but <C-V>uXXXX. Do not dump the screen highlighting. (Christian Brabandt, closes #518)
1 parent 2c5e8e8 commit 1c57fe8

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/testdir/test_listlbr_utf8.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ STARTTEST
44
:so small.vim
55
:if !exists("+linebreak") || !has("conceal") || !has("signs") | e! test.ok | w! test.out | qa! | endif
66
:so mbyte.vim
7+
:set encoding=utf8
78
:if &enc !=? 'utf-8'|:e! test.ok|:w! test.out|qa!|endif
89
:10new|:vsp|:vert resize 20
910
:put =\"\tabcdef hijklmn\tpqrstuvwxyz\u00a01060ABCDEFGHIJKLMNOP \"
@@ -109,7 +110,7 @@ Golong line: 40afoobar aTARGETÃ' at end
109110
:$put ='a b c'
110111
:$put ='a b c'
111112
:set list nolinebreak cc=3
112-
:sign define foo text=+
113+
:sign define foo text=uff0b
113114
:sign place 1 name=foo line=50 buffer=2
114115
:norm! 2kztj
115116
:let line1=line('.')
@@ -121,8 +122,6 @@ Golong line: 40afoobar aTARGETÃ' at end
121122
:redraw!
122123
:let line=ScreenChar(winwidth(0),3)
123124
:call DoRecordScreen()
124-
:call append('$', ['ScreenAttributes for test9:'])
125-
:call append('$', ["Line: ".line1. " ". string(g:attr),"Line: ".line2. " ". string(g:attr2)])
126125
:" expected: attr[2] is different because of colorcolumn
127126
:if attr[0] != attr2[0] || attr[1] != attr2[1] || attr[2] != attr2[2]
128127
: call append('$', "Screen attributes are different!")

src/testdir/test_listlbr_utf8.ok

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ a b c
5151
a b c
5252

5353
Test 9: a multibyte sign and colorcolumn
54-
¶
55-
+a b c¶
56-
a b c¶
57-
ScreenAttributes for test9:
58-
Line: 50 ['0', '0', '72', '0']
59-
Line: 51 ['0', '0', '72', '0']
54+
55+
+a b c¶
56+
a b c¶
6057
Screen attributes are the same!

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
963,
744746
/**/
745747
962,
746748
/**/

0 commit comments

Comments
 (0)