Karsten Hopp 8abd88
To: vim_dev@googlegroups.com
Karsten Hopp 8abd88
Subject: Patch 7.4.932
Karsten Hopp 8abd88
Fcc: outbox
Karsten Hopp 8abd88
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8abd88
Mime-Version: 1.0
Karsten Hopp 8abd88
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8abd88
Content-Transfer-Encoding: 8bit
Karsten Hopp 8abd88
------------
Karsten Hopp 8abd88
Karsten Hopp 8abd88
Patch 7.4.932 (after 7.4.926)
Karsten Hopp 8abd88
Problem:    test_utf8 has confusing dummy command.
Karsten Hopp 8abd88
Solution:   Use a real command instead of a colon.
Karsten Hopp 8abd88
Files:      src/testdir/test_utf8.in
Karsten Hopp 8abd88
Karsten Hopp 8abd88
Karsten Hopp 8abd88
*** ../vim-7.4.931/src/testdir/test_utf8.in	2015-11-19 19:00:01.768467013 +0100
Karsten Hopp 8abd88
--- src/testdir/test_utf8.in	2015-11-21 14:28:11.463946910 +0100
Karsten Hopp 8abd88
***************
Karsten Hopp 8abd88
*** 3,8 ****
Karsten Hopp 8abd88
--- 3,9 ----
Karsten Hopp 8abd88
  STARTTEST
Karsten Hopp 8abd88
  :so small.vim
Karsten Hopp 8abd88
  :set encoding=utf-8
Karsten Hopp 8abd88
+ :"
Karsten Hopp 8abd88
  :" Visual block Insert adjusts for multi-byte char
Karsten Hopp 8abd88
  :new
Karsten Hopp 8abd88
  :call setline(1, ["aaa", "あああ", "bbb"])
Karsten Hopp 8abd88
***************
Karsten Hopp 8abd88
*** 11,39 ****
Karsten Hopp 8abd88
  :
Karsten Hopp 8abd88
  :bwipeout!
Karsten Hopp 8abd88
  :$put=r
Karsten Hopp 8abd88
  :" Test for built-in function strchars()
Karsten Hopp 8abd88
  :for str in ["a", "あいa", "A\u20dd", "A\u20dd\u20dd", "\u20dd"]
Karsten Hopp 8abd88
  :	$put=strchars(str)
Karsten Hopp 8abd88
  :	$put=strchars(str, 0)
Karsten Hopp 8abd88
  :	$put=strchars(str, 1)
Karsten Hopp 8abd88
  :endfor
Karsten Hopp 8abd88
  :" Test for customlist completion
Karsten Hopp 8abd88
  :function! CustomComplete1(lead, line, pos)
Karsten Hopp 8abd88
  :	return ['あ', 'い']
Karsten Hopp 8abd88
  :endfunction
Karsten Hopp 8abd88
! :command -nargs=1 -complete=customlist,CustomComplete1 Test1 :
Karsten Hopp 8abd88
  :call feedkeys(":Test1 \<C-L>'\<C-B>$put='\<CR>", 't')
Karsten Hopp 8abd88
  :
Karsten Hopp 8abd88
  :function! CustomComplete2(lead, line, pos)
Karsten Hopp 8abd88
  :	return ['あたし', 'あたま', 'あたりめ']
Karsten Hopp 8abd88
  :endfunction
Karsten Hopp 8abd88
! :command -nargs=1 -complete=customlist,CustomComplete2 Test2 :
Karsten Hopp 8abd88
  :call feedkeys(":Test2 \<C-L>'\<C-B>$put='\<CR>", 't')
Karsten Hopp 8abd88
  :
Karsten Hopp 8abd88
  :function! CustomComplete3(lead, line, pos)
Karsten Hopp 8abd88
  :	return ['Nこ', 'Nん', 'Nぶ']
Karsten Hopp 8abd88
  :endfunction
Karsten Hopp 8abd88
! :command -nargs=1 -complete=customlist,CustomComplete3 Test3 :
Karsten Hopp 8abd88
  :call feedkeys(":Test3 \<C-L>'\<C-B>$put='\<CR>", 't')
Karsten Hopp 8abd88
  :
Karsten Hopp 8abd88
  :call garbagecollect(1)
Karsten Hopp 8abd88
--- 12,42 ----
Karsten Hopp 8abd88
  :
Karsten Hopp 8abd88
  :bwipeout!
Karsten Hopp 8abd88
  :$put=r
Karsten Hopp 8abd88
+ :"
Karsten Hopp 8abd88
  :" Test for built-in function strchars()
Karsten Hopp 8abd88
  :for str in ["a", "あいa", "A\u20dd", "A\u20dd\u20dd", "\u20dd"]
Karsten Hopp 8abd88
  :	$put=strchars(str)
Karsten Hopp 8abd88
  :	$put=strchars(str, 0)
Karsten Hopp 8abd88
  :	$put=strchars(str, 1)
Karsten Hopp 8abd88
  :endfor
Karsten Hopp 8abd88
+ :"
Karsten Hopp 8abd88
  :" Test for customlist completion
Karsten Hopp 8abd88
  :function! CustomComplete1(lead, line, pos)
Karsten Hopp 8abd88
  :	return ['あ', 'い']
Karsten Hopp 8abd88
  :endfunction
Karsten Hopp 8abd88
! :command -nargs=1 -complete=customlist,CustomComplete1 Test1 echo
Karsten Hopp 8abd88
  :call feedkeys(":Test1 \<C-L>'\<C-B>$put='\<CR>", 't')
Karsten Hopp 8abd88
  :
Karsten Hopp 8abd88
  :function! CustomComplete2(lead, line, pos)
Karsten Hopp 8abd88
  :	return ['あたし', 'あたま', 'あたりめ']
Karsten Hopp 8abd88
  :endfunction
Karsten Hopp 8abd88
! :command -nargs=1 -complete=customlist,CustomComplete2 Test2 echo
Karsten Hopp 8abd88
  :call feedkeys(":Test2 \<C-L>'\<C-B>$put='\<CR>", 't')
Karsten Hopp 8abd88
  :
Karsten Hopp 8abd88
  :function! CustomComplete3(lead, line, pos)
Karsten Hopp 8abd88
  :	return ['Nこ', 'Nん', 'Nぶ']
Karsten Hopp 8abd88
  :endfunction
Karsten Hopp 8abd88
! :command -nargs=1 -complete=customlist,CustomComplete3 Test3 echo
Karsten Hopp 8abd88
  :call feedkeys(":Test3 \<C-L>'\<C-B>$put='\<CR>", 't')
Karsten Hopp 8abd88
  :
Karsten Hopp 8abd88
  :call garbagecollect(1)
Karsten Hopp 8abd88
*** ../vim-7.4.931/src/version.c	2015-11-21 14:24:46.686156894 +0100
Karsten Hopp 8abd88
--- src/version.c	2015-11-21 14:31:12.165996746 +0100
Karsten Hopp 8abd88
***************
Karsten Hopp 8abd88
*** 743,744 ****
Karsten Hopp 8abd88
--- 743,746 ----
Karsten Hopp 8abd88
  {   /* Add new patch number below this line */
Karsten Hopp 8abd88
+ /**/
Karsten Hopp 8abd88
+     932,
Karsten Hopp 8abd88
  /**/
Karsten Hopp 8abd88
Karsten Hopp 8abd88
-- 
Karsten Hopp 8abd88
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 8abd88
121. You ask for e-mail adresses instead of telephone numbers.
Karsten Hopp 8abd88
Karsten Hopp 8abd88
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8abd88
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8abd88
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8abd88
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///