@@ -3,6 +3,7 @@ Tests for Unicode manipulations vim: set ft=vim :
33STARTTEST
44:so small.vim
55:set encoding = utf- 8
6+ :"
67:" Visual block Insert adjusts for multi-byte char
78:new
89:call setline (1 , [" aaa" , " あああ" , " bbb" ])
@@ -11,29 +12,31 @@ STARTTEST
1112:
1213:bwipeout !
1314:$put = r
15+ :"
1416:" Test for built-in function strchars()
1517:for str in [" a" , " あいa" , " A\u20dd " , " A\u20dd\u20dd " , " \u20dd " ]
1618: $put = strchars (str)
1719: $put = strchars (str, 0 )
1820: $put = strchars (str, 1 )
1921:endfor
22+ :"
2023:" Test for customlist completion
2124:function ! CustomComplete1 (lead, line , pos)
2225: return [' あ' , ' い' ]
2326:endfunction
24- :command -nargs =1 -complete =customlist ,CustomComplete1 Test1 :
27+ :command -nargs =1 -complete =customlist ,CustomComplete1 Test1 echo
2528:call feedkeys (" :Test1 \<C-L> '\<C-B> $put='\<CR> " , ' t' )
2629:
2730:function ! CustomComplete2 (lead, line , pos)
2831: return [' あたし' , ' あたま' , ' あたりめ' ]
2932:endfunction
30- :command -nargs =1 -complete =customlist ,CustomComplete2 Test2 :
33+ :command -nargs =1 -complete =customlist ,CustomComplete2 Test2 echo
3134:call feedkeys (" :Test2 \<C-L> '\<C-B> $put='\<CR> " , ' t' )
3235:
3336:function ! CustomComplete3 (lead, line , pos)
3437: return [' Nこ' , ' Nん' , ' Nぶ' ]
3538:endfunction
36- :command -nargs =1 -complete =customlist ,CustomComplete3 Test3 :
39+ :command -nargs =1 -complete =customlist ,CustomComplete3 Test3 echo
3740:call feedkeys (" :Test3 \<C-L> '\<C-B> $put='\<CR> " , ' t' )
3841:
3942:call garbagecollect (1 )
0 commit comments