:so small.vim
:if !exists("+linebreak") || !has("conceal") || !has("signs") | e! test.ok | w! test.out | qa! | endif
:so mbyte.vim
+:set encoding=utf8
:if &enc !=? 'utf-8'|:e! test.ok|:w! test.out|qa!|endif
:10new|:vsp|:vert resize 20
:put =\"\tabcdef hijklmn\tpqrstuvwxyz\u00a01060ABCDEFGHIJKLMNOP \"
:$put ='a b c'
:$put ='a b c'
:set list nolinebreak cc=3
-:sign define foo text=ï¼\8b
+:sign define foo text=\16uff0b
:sign place 1 name=foo line=50 buffer=2
:norm! 2kztj
:let line1=line('.')
:redraw!
:let line=ScreenChar(winwidth(0),3)
:call DoRecordScreen()
-:call append('$', ['ScreenAttributes for test9:'])
-:call append('$', ["Line: ".line1. " ". string(g:attr),"Line: ".line2. " ". string(g:attr2)])
:" expected: attr[2] is different because of colorcolumn
:if attr[0] != attr2[0] || attr[1] != attr2[1] || attr[2] != attr2[2]
: call append('$', "Screen attributes are different!")
a b c
Test 9: a multibyte sign and colorcolumn
- ¶
-ï¼\8ba b c¶
- a b c¶
-ScreenAttributes for test9:
-Line: 50 ['0', '0', '72', '0']
-Line: 51 ['0', '0', '72', '0']
+ ¶
++a b c¶
+ a b c¶
Screen attributes are the same!