Karsten Hopp ef3ea0
To: vim_dev@googlegroups.com
Karsten Hopp ef3ea0
Subject: Patch 7.4.019
Karsten Hopp ef3ea0
Fcc: outbox
Karsten Hopp ef3ea0
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ef3ea0
Mime-Version: 1.0
Karsten Hopp ef3ea0
Content-Type: text/plain; charset=UTF-8
Karsten Hopp ef3ea0
Content-Transfer-Encoding: 8bit
Karsten Hopp ef3ea0
------------
Karsten Hopp ef3ea0
Karsten Hopp ef3ea0
Patch 7.4.019
Karsten Hopp ef3ea0
Problem:    MS-Windows: File name completion doesn't work properly with
Karsten Hopp ef3ea0
	    Chinese characters. (Yue Wu)
Karsten Hopp ef3ea0
Solution:   Take care of multi-byte characters when looking for the start of
Karsten Hopp ef3ea0
	    the file name. (Ken Takata)
Karsten Hopp ef3ea0
Files:	    src/edit.c
Karsten Hopp ef3ea0
Karsten Hopp ef3ea0
Karsten Hopp ef3ea0
*** ../vim-7.4.018/src/edit.c	2013-09-05 12:49:48.000000000 +0200
Karsten Hopp ef3ea0
--- src/edit.c	2013-09-05 13:45:27.000000000 +0200
Karsten Hopp ef3ea0
***************
Karsten Hopp ef3ea0
*** 5183,5190 ****
Karsten Hopp ef3ea0
  	}
Karsten Hopp ef3ea0
  	else if (ctrl_x_mode == CTRL_X_FILES)
Karsten Hopp ef3ea0
  	{
Karsten Hopp ef3ea0
! 	    while (--startcol >= 0 && vim_isfilec(line[startcol]))
Karsten Hopp ef3ea0
! 		;
Karsten Hopp ef3ea0
  	    compl_col += ++startcol;
Karsten Hopp ef3ea0
  	    compl_length = (int)curs_col - startcol;
Karsten Hopp ef3ea0
  	    compl_pattern = addstar(line + compl_col, compl_length,
Karsten Hopp ef3ea0
--- 5183,5196 ----
Karsten Hopp ef3ea0
  	}
Karsten Hopp ef3ea0
  	else if (ctrl_x_mode == CTRL_X_FILES)
Karsten Hopp ef3ea0
  	{
Karsten Hopp ef3ea0
! 	    char_u	*p = line + startcol;
Karsten Hopp ef3ea0
! 
Karsten Hopp ef3ea0
! 	    /* Go back to just before the first filename character. */
Karsten Hopp ef3ea0
! 	    mb_ptr_back(line, p);
Karsten Hopp ef3ea0
! 	    while (vim_isfilec(PTR2CHAR(p)) && p >= line)
Karsten Hopp ef3ea0
! 		mb_ptr_back(line, p);
Karsten Hopp ef3ea0
! 	    startcol = p - line;
Karsten Hopp ef3ea0
! 
Karsten Hopp ef3ea0
  	    compl_col += ++startcol;
Karsten Hopp ef3ea0
  	    compl_length = (int)curs_col - startcol;
Karsten Hopp ef3ea0
  	    compl_pattern = addstar(line + compl_col, compl_length,
Karsten Hopp ef3ea0
*** ../vim-7.4.018/src/version.c	2013-09-05 12:49:48.000000000 +0200
Karsten Hopp ef3ea0
--- src/version.c	2013-09-05 13:41:47.000000000 +0200
Karsten Hopp ef3ea0
***************
Karsten Hopp ef3ea0
*** 740,741 ****
Karsten Hopp ef3ea0
--- 740,743 ----
Karsten Hopp ef3ea0
  {   /* Add new patch number below this line */
Karsten Hopp ef3ea0
+ /**/
Karsten Hopp ef3ea0
+     19,
Karsten Hopp ef3ea0
  /**/
Karsten Hopp ef3ea0
Karsten Hopp ef3ea0
-- 
Karsten Hopp ef3ea0
        Very funny, Scotty.  Now beam down my clothes.
Karsten Hopp ef3ea0
Karsten Hopp ef3ea0
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ef3ea0
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ef3ea0
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp ef3ea0
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///