astepano / rpms / vim

Forked from rpms/vim 6 years ago
Clone
4fabf59
To: vim_dev@googlegroups.com
4fabf59
Subject: Patch 7.3.840
4fabf59
Fcc: outbox
4fabf59
From: Bram Moolenaar <Bram@moolenaar.net>
4fabf59
Mime-Version: 1.0
4fabf59
Content-Type: text/plain; charset=UTF-8
4fabf59
Content-Transfer-Encoding: 8bit
4fabf59
------------
4fabf59
4fabf59
Patch 7.3.840
4fabf59
Problem:    "\@
4fabf59
	    characters, especially cp932.
4fabf59
Solution:   Move column to start of multi-byte character. (Yasuhiro Matsumoto)
4fabf59
Files:	    src/regexp.c
4fabf59
4fabf59
4fabf59
*** ../vim-7.3.839/src/regexp.c	2013-01-30 18:21:48.000000000 +0100
4fabf59
--- src/regexp.c	2013-02-26 18:37:45.000000000 +0100
4fabf59
***************
4fabf59
*** 5449,5454 ****
4fabf59
--- 5449,5461 ----
4fabf59
  			}
4fabf59
  		    }
4fabf59
  		    else
4fabf59
+ #ifdef FEAT_MBYTE
4fabf59
+ 		    if (has_mbyte)
4fabf59
+ 			rp->rs_un.regsave.rs_u.pos.col -=
4fabf59
+ 			    (*mb_head_off)(regline, regline
4fabf59
+ 				    + rp->rs_un.regsave.rs_u.pos.col - 1) + 1;
4fabf59
+ 		    else
4fabf59
+ #endif
4fabf59
  			--rp->rs_un.regsave.rs_u.pos.col;
4fabf59
  		}
4fabf59
  		else
4fabf59
*** ../vim-7.3.839/src/version.c	2013-02-26 17:59:37.000000000 +0100
4fabf59
--- src/version.c	2013-02-26 18:39:28.000000000 +0100
4fabf59
***************
4fabf59
*** 730,731 ****
4fabf59
--- 730,733 ----
4fabf59
  {   /* Add new patch number below this line */
4fabf59
+ /**/
4fabf59
+     840,
4fabf59
  /**/
4fabf59
4fabf59
-- 
4fabf59
I learned the customs and mannerisms of engineers by observing them, much the
4fabf59
way Jane Goodall learned about the great apes, but without the hassle of
4fabf59
grooming.
4fabf59
				(Scott Adams - The Dilbert principle)
4fabf59
4fabf59
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
4fabf59
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
4fabf59
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
4fabf59
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///