forked from aniani/vim
patch 7.4.932
Problem: test_utf8 has confusing dummy command. Solution: Use a real command instead of a colon.
This commit is contained in:
@@ -3,6 +3,7 @@ Tests for Unicode manipulations vim: set ft=vim :
|
|||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
:set encoding=utf-8
|
:set encoding=utf-8
|
||||||
|
:"
|
||||||
:" Visual block Insert adjusts for multi-byte char
|
:" Visual block Insert adjusts for multi-byte char
|
||||||
:new
|
:new
|
||||||
:call setline(1, ["aaa", "あああ", "bbb"])
|
:call setline(1, ["aaa", "あああ", "bbb"])
|
||||||
@@ -11,29 +12,31 @@ STARTTEST
|
|||||||
:
|
:
|
||||||
:bwipeout!
|
:bwipeout!
|
||||||
:$put=r
|
:$put=r
|
||||||
|
:"
|
||||||
:" Test for built-in function strchars()
|
:" Test for built-in function strchars()
|
||||||
:for str in ["a", "あいa", "A\u20dd", "A\u20dd\u20dd", "\u20dd"]
|
:for str in ["a", "あいa", "A\u20dd", "A\u20dd\u20dd", "\u20dd"]
|
||||||
: $put=strchars(str)
|
: $put=strchars(str)
|
||||||
: $put=strchars(str, 0)
|
: $put=strchars(str, 0)
|
||||||
: $put=strchars(str, 1)
|
: $put=strchars(str, 1)
|
||||||
:endfor
|
:endfor
|
||||||
|
:"
|
||||||
:" Test for customlist completion
|
:" Test for customlist completion
|
||||||
:function! CustomComplete1(lead, line, pos)
|
:function! CustomComplete1(lead, line, pos)
|
||||||
: return ['あ', 'い']
|
: return ['あ', 'い']
|
||||||
:endfunction
|
:endfunction
|
||||||
:command -nargs=1 -complete=customlist,CustomComplete1 Test1 :
|
:command -nargs=1 -complete=customlist,CustomComplete1 Test1 echo
|
||||||
:call feedkeys(":Test1 \<C-L>'\<C-B>$put='\<CR>", 't')
|
:call feedkeys(":Test1 \<C-L>'\<C-B>$put='\<CR>", 't')
|
||||||
:
|
:
|
||||||
:function! CustomComplete2(lead, line, pos)
|
:function! CustomComplete2(lead, line, pos)
|
||||||
: return ['あたし', 'あたま', 'あたりめ']
|
: return ['あたし', 'あたま', 'あたりめ']
|
||||||
:endfunction
|
:endfunction
|
||||||
:command -nargs=1 -complete=customlist,CustomComplete2 Test2 :
|
:command -nargs=1 -complete=customlist,CustomComplete2 Test2 echo
|
||||||
:call feedkeys(":Test2 \<C-L>'\<C-B>$put='\<CR>", 't')
|
:call feedkeys(":Test2 \<C-L>'\<C-B>$put='\<CR>", 't')
|
||||||
:
|
:
|
||||||
:function! CustomComplete3(lead, line, pos)
|
:function! CustomComplete3(lead, line, pos)
|
||||||
: return ['Nこ', 'Nん', 'Nぶ']
|
: return ['Nこ', 'Nん', 'Nぶ']
|
||||||
:endfunction
|
:endfunction
|
||||||
:command -nargs=1 -complete=customlist,CustomComplete3 Test3 :
|
:command -nargs=1 -complete=customlist,CustomComplete3 Test3 echo
|
||||||
:call feedkeys(":Test3 \<C-L>'\<C-B>$put='\<CR>", 't')
|
:call feedkeys(":Test3 \<C-L>'\<C-B>$put='\<CR>", 't')
|
||||||
:
|
:
|
||||||
:call garbagecollect(1)
|
:call garbagecollect(1)
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
932,
|
||||||
/**/
|
/**/
|
||||||
931,
|
931,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user