Karsten Hopp 497e5d
To: vim_dev@googlegroups.com
Karsten Hopp 497e5d
Subject: Patch 7.3.927
Karsten Hopp 497e5d
Fcc: outbox
Karsten Hopp 497e5d
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 497e5d
Mime-Version: 1.0
Karsten Hopp 497e5d
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 497e5d
Content-Transfer-Encoding: 8bit
Karsten Hopp 497e5d
------------
Karsten Hopp 497e5d
Karsten Hopp 497e5d
Patch 7.3.927
Karsten Hopp 497e5d
Problem:    Missing combining characters when putting text in a register.
Karsten Hopp 497e5d
Solution:   Include combining characters. (Christian Brabandt)
Karsten Hopp 497e5d
Files:	    src/getchar.c, src/testdir/test44.in, src/testdir/test44.ok
Karsten Hopp 497e5d
Karsten Hopp 497e5d
Karsten Hopp 497e5d
*** ../vim-7.3.926/src/getchar.c	2013-04-15 15:47:07.000000000 +0200
Karsten Hopp 497e5d
--- src/getchar.c	2013-05-06 05:06:13.000000000 +0200
Karsten Hopp 497e5d
***************
Karsten Hopp 497e5d
*** 4616,4624 ****
Karsten Hopp 497e5d
--- 4616,4636 ----
Karsten Hopp 497e5d
  	    }
Karsten Hopp 497e5d
  	    else
Karsten Hopp 497e5d
  	    {
Karsten Hopp 497e5d
+ #ifdef FEAT_MBYTE
Karsten Hopp 497e5d
+ 		int len  = mb_char2len(PTR2CHAR(s));
Karsten Hopp 497e5d
+ 		int len2 = mb_ptr2len(s);
Karsten Hopp 497e5d
+ #endif
Karsten Hopp 497e5d
  		/* Add character, possibly multi-byte to destination, escaping
Karsten Hopp 497e5d
  		 * CSI and K_SPECIAL. */
Karsten Hopp 497e5d
  		d = add_char2buf(PTR2CHAR(s), d);
Karsten Hopp 497e5d
+ #ifdef FEAT_MBYTE
Karsten Hopp 497e5d
+ 		while (len < len2)
Karsten Hopp 497e5d
+ 		{
Karsten Hopp 497e5d
+ 		    /* add following combining char */
Karsten Hopp 497e5d
+ 		    d = add_char2buf(PTR2CHAR(s + len), d);
Karsten Hopp 497e5d
+ 		    len += mb_char2len(PTR2CHAR(s + len));
Karsten Hopp 497e5d
+ 		}
Karsten Hopp 497e5d
+ #endif
Karsten Hopp 497e5d
  		mb_ptr_adv(s);
Karsten Hopp 497e5d
  	    }
Karsten Hopp 497e5d
  	}
Karsten Hopp 497e5d
*** ../vim-7.3.926/src/testdir/test44.in	2013-01-23 16:43:07.000000000 +0100
Karsten Hopp 497e5d
--- src/testdir/test44.in	2013-05-06 05:01:39.000000000 +0200
Karsten Hopp 497e5d
***************
Karsten Hopp 497e5d
*** 32,38 ****
Karsten Hopp 497e5d
  x:" Test backwards search from a multi-byte char
Karsten Hopp 497e5d
  /x
Karsten Hopp 497e5d
  x?.
Karsten Hopp 497e5d
! x:?^1?,$w! test.out
Karsten Hopp 497e5d
  :e! test.out
Karsten Hopp 497e5d
  G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב
Karsten Hopp 497e5d
  :put =matchstr(\"אבגד\", \"..\", 0, 2) " בג
Karsten Hopp 497e5d
--- 32,40 ----
Karsten Hopp 497e5d
  x:" Test backwards search from a multi-byte char
Karsten Hopp 497e5d
  /x
Karsten Hopp 497e5d
  x?.
Karsten Hopp 497e5d
! x:let @w=':%s#comb[i]nations#œ̄ṣ́m̥̄ᾱ̆́#g'
Karsten Hopp 497e5d
! :@w
Karsten Hopp 497e5d
! :?^1?,$w! test.out
Karsten Hopp 497e5d
  :e! test.out
Karsten Hopp 497e5d
  G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב
Karsten Hopp 497e5d
  :put =matchstr(\"אבגד\", \"..\", 0, 2) " בג
Karsten Hopp 497e5d
***************
Karsten Hopp 497e5d
*** 61,63 ****
Karsten Hopp 497e5d
--- 63,66 ----
Karsten Hopp 497e5d
  h AÀÁÂÃÄÅĀĂĄǍǞǠẢ BḂḆ CÇĆĈĊČ DĎĐḊḎḐ EÈÉÊËĒĔĖĘĚẺẼ FḞ GĜĞĠĢǤǦǴḠ HĤĦḢḦḨ IÌÍÎÏĨĪĬĮİǏỈ JĴ KĶǨḰḴ LĹĻĽĿŁḺ MḾṀ NÑŃŅŇṄṈ OÒÓÔÕÖØŌŎŐƠǑǪǬỎ PṔṖ Q RŔŖŘṘṞ SŚŜŞŠṠ TŢŤŦṪṮ UÙÚÛÜŨŪŬŮŰŲƯǓỦ VṼ WŴẀẂẄẆ XẊẌ YÝŶŸẎỲỶỸ ZŹŻŽƵẐẔ
Karsten Hopp 497e5d
  i aàáâãäåāăąǎǟǡả bḃḇ cçćĉċč dďđḋḏḑ eèéêëēĕėęěẻẽ fḟ gĝğġģǥǧǵḡ hĥħḣḧḩẖ iìíîïĩīĭįǐỉ jĵǰ kķǩḱḵ lĺļľŀłḻ mḿṁ nñńņňʼnṅṉ oòóôõöøōŏőơǒǫǭỏ pṕṗ q rŕŗřṙṟ sśŝşšṡ tţťŧṫṯẗ uùúûüũūŭůűųưǔủ vṽ wŵẁẃẅẇẘ xẋẍ yýÿŷẏẙỳỷỹ zźżžƶẑẕ
Karsten Hopp 497e5d
  j 0123❤x
Karsten Hopp 497e5d
+ k combinations
Karsten Hopp 497e5d
*** ../vim-7.3.926/src/testdir/test44.ok	2013-01-23 16:43:07.000000000 +0100
Karsten Hopp 497e5d
--- src/testdir/test44.ok	2013-05-06 05:01:39.000000000 +0200
Karsten Hopp 497e5d
***************
Karsten Hopp 497e5d
*** 17,22 ****
Karsten Hopp 497e5d
--- 17,23 ----
Karsten Hopp 497e5d
  h AÀÁÂÃÄÅĀĂĄǍǞǠẢ BḂḆ CÇĆĈĊČ DĎĐḊḎḐ EÈÉÊËĒĔĖĘĚẺẼ FḞ GĜĞĠĢǤǦǴḠ HĤĦḢḦḨ IÌÍÎÏĨĪĬĮİǏỈ JĴ KĶǨḰḴ LĹĻĽĿŁḺ MḾṀ NÑŃŅŇṄṈ OÒÓÔÕÖØŌŎŐƠǑǪǬỎ PṔṖ Q RŔŖŘṘṞ SŚŜŞŠṠ TŢŤŦṪṮ UÙÚÛÜŨŪŬŮŰŲƯǓỦ VṼ WŴẀẂẄẆ XẊẌ YÝŶŸẎỲỶỸ ZŹŻŽƵẐ
Karsten Hopp 497e5d
  i aàáâãäåāăąǎǟǡả bḃḇ cçćĉċč dďđḋḏḑ eèéêëēĕėęěẻẽ fḟ gĝğġģǥǧǵḡ hĥħḣḧḩẖ iìíîïĩīĭįǐỉ jĵǰ kķǩḱḵ lĺļľŀłḻ mḿṁ nñńņňʼnṅṉ oòóôõöøōŏőơǒǫǭỏ pṕṗ q rŕŗřṙṟ sśŝşšṡ tţťŧṫṯẗ uùúûüũūŭůűųưǔủ vṽ wŵẁẃẅẇẘ xẋẍ yýÿŷẏẙỳỷỹ zźżžƶẑ
Karsten Hopp 497e5d
  j 012❤
Karsten Hopp 497e5d
+ k œ̄ṣ́m̥̄ᾱ̆́
Karsten Hopp 497e5d
  ב
Karsten Hopp 497e5d
  בג
Karsten Hopp 497e5d
  א
Karsten Hopp 497e5d
*** ../vim-7.3.926/src/version.c	2013-05-06 04:50:26.000000000 +0200
Karsten Hopp 497e5d
--- src/version.c	2013-05-06 05:08:11.000000000 +0200
Karsten Hopp 497e5d
***************
Karsten Hopp 497e5d
*** 730,731 ****
Karsten Hopp 497e5d
--- 730,733 ----
Karsten Hopp 497e5d
  {   /* Add new patch number below this line */
Karsten Hopp 497e5d
+ /**/
Karsten Hopp 497e5d
+     927,
Karsten Hopp 497e5d
  /**/
Karsten Hopp 497e5d
Karsten Hopp 497e5d
-- 
Karsten Hopp 497e5d
In his lifetime van Gogh painted 486 oil paintings. Oddly enough, 8975
Karsten Hopp 497e5d
of them are to be found in the United States.
Karsten Hopp 497e5d
Karsten Hopp 497e5d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 497e5d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 497e5d
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 497e5d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///