jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.019

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