Karsten Hopp 4e0248
To: vim_dev@googlegroups.com
Karsten Hopp 4e0248
Subject: Patch 7.4.935
Karsten Hopp 4e0248
Fcc: outbox
Karsten Hopp 4e0248
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4e0248
Mime-Version: 1.0
Karsten Hopp 4e0248
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 4e0248
Content-Transfer-Encoding: 8bit
Karsten Hopp 4e0248
------------
Karsten Hopp 4e0248
Karsten Hopp 4e0248
Patch 7.4.935 (after 7.4.932)
Karsten Hopp 4e0248
Problem:    test_utf8 fails on MS-Windows when executed with gvim.
Karsten Hopp 4e0248
Solution:   Use the insert flag on feedkeys() to put the string before the
Karsten Hopp 4e0248
            ":" that was already read when checking for available chars.
Karsten Hopp 4e0248
Files:      src/testdir/test_utf8.in
Karsten Hopp 4e0248
Karsten Hopp 4e0248
Karsten Hopp 4e0248
*** ../vim-7.4.934/src/testdir/test_utf8.in	2015-11-21 14:31:29.269812159 +0100
Karsten Hopp 4e0248
--- src/testdir/test_utf8.in	2015-11-22 15:04:56.698114325 +0100
Karsten Hopp 4e0248
***************
Karsten Hopp 4e0248
*** 9,15 ****
Karsten Hopp 4e0248
  :call setline(1, ["aaa", "あああ", "bbb"])
Karsten Hopp 4e0248
  :exe ":norm! gg0l\<C-V>jjIx\<Esc>"
Karsten Hopp 4e0248
  :let r = getline(1, '$')
Karsten Hopp 4e0248
! :
Karsten Hopp 4e0248
  :bwipeout!
Karsten Hopp 4e0248
  :$put=r
Karsten Hopp 4e0248
  :"
Karsten Hopp 4e0248
--- 9,15 ----
Karsten Hopp 4e0248
  :call setline(1, ["aaa", "あああ", "bbb"])
Karsten Hopp 4e0248
  :exe ":norm! gg0l\<C-V>jjIx\<Esc>"
Karsten Hopp 4e0248
  :let r = getline(1, '$')
Karsten Hopp 4e0248
! :"
Karsten Hopp 4e0248
  :bwipeout!
Karsten Hopp 4e0248
  :$put=r
Karsten Hopp 4e0248
  :"
Karsten Hopp 4e0248
***************
Karsten Hopp 4e0248
*** 25,44 ****
Karsten Hopp 4e0248
  :	return ['あ', 'い']
Karsten Hopp 4e0248
  :endfunction
Karsten Hopp 4e0248
  :command -nargs=1 -complete=customlist,CustomComplete1 Test1 echo
Karsten Hopp 4e0248
! :call feedkeys(":Test1 \<C-L>'\<C-B>$put='\<CR>", 't')
Karsten Hopp 4e0248
! :
Karsten Hopp 4e0248
  :function! CustomComplete2(lead, line, pos)
Karsten Hopp 4e0248
  :	return ['あたし', 'あたま', 'あたりめ']
Karsten Hopp 4e0248
  :endfunction
Karsten Hopp 4e0248
  :command -nargs=1 -complete=customlist,CustomComplete2 Test2 echo
Karsten Hopp 4e0248
! :call feedkeys(":Test2 \<C-L>'\<C-B>$put='\<CR>", 't')
Karsten Hopp 4e0248
! :
Karsten Hopp 4e0248
  :function! CustomComplete3(lead, line, pos)
Karsten Hopp 4e0248
  :	return ['Nこ', 'Nん', 'Nぶ']
Karsten Hopp 4e0248
  :endfunction
Karsten Hopp 4e0248
  :command -nargs=1 -complete=customlist,CustomComplete3 Test3 echo
Karsten Hopp 4e0248
! :call feedkeys(":Test3 \<C-L>'\<C-B>$put='\<CR>", 't')
Karsten Hopp 4e0248
! :
Karsten Hopp 4e0248
  :call garbagecollect(1)
Karsten Hopp 4e0248
  :/^start:/,$wq! test.out
Karsten Hopp 4e0248
  ENDTEST
Karsten Hopp 4e0248
--- 25,44 ----
Karsten Hopp 4e0248
  :	return ['あ', 'い']
Karsten Hopp 4e0248
  :endfunction
Karsten Hopp 4e0248
  :command -nargs=1 -complete=customlist,CustomComplete1 Test1 echo
Karsten Hopp 4e0248
! :call feedkeys(":Test1 \<C-L>'\<C-B>$put='\<CR>", 'it')
Karsten Hopp 4e0248
! :"
Karsten Hopp 4e0248
  :function! CustomComplete2(lead, line, pos)
Karsten Hopp 4e0248
  :	return ['あたし', 'あたま', 'あたりめ']
Karsten Hopp 4e0248
  :endfunction
Karsten Hopp 4e0248
  :command -nargs=1 -complete=customlist,CustomComplete2 Test2 echo
Karsten Hopp 4e0248
! :call feedkeys(":Test2 \<C-L>'\<C-B>$put='\<CR>", 'it')
Karsten Hopp 4e0248
! :"
Karsten Hopp 4e0248
  :function! CustomComplete3(lead, line, pos)
Karsten Hopp 4e0248
  :	return ['Nこ', 'Nん', 'Nぶ']
Karsten Hopp 4e0248
  :endfunction
Karsten Hopp 4e0248
  :command -nargs=1 -complete=customlist,CustomComplete3 Test3 echo
Karsten Hopp 4e0248
! :call feedkeys(":Test3 \<C-L>'\<C-B>$put='\<CR>", 'it')
Karsten Hopp 4e0248
! :"
Karsten Hopp 4e0248
  :call garbagecollect(1)
Karsten Hopp 4e0248
  :/^start:/,$wq! test.out
Karsten Hopp 4e0248
  ENDTEST
Karsten Hopp 4e0248
*** ../vim-7.4.934/src/version.c	2015-11-21 17:15:29.478748351 +0100
Karsten Hopp 4e0248
--- src/version.c	2015-11-22 15:06:49.884881491 +0100
Karsten Hopp 4e0248
***************
Karsten Hopp 4e0248
*** 743,744 ****
Karsten Hopp 4e0248
--- 743,746 ----
Karsten Hopp 4e0248
  {   /* Add new patch number below this line */
Karsten Hopp 4e0248
+ /**/
Karsten Hopp 4e0248
+     935,
Karsten Hopp 4e0248
  /**/
Karsten Hopp 4e0248
Karsten Hopp 4e0248
-- 
Karsten Hopp 4e0248
I have a watch cat! Just break in and she'll watch.
Karsten Hopp 4e0248
Karsten Hopp 4e0248
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4e0248
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4e0248
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 4e0248
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///