Karsten Hopp c367b0
To: vim_dev@googlegroups.com
Karsten Hopp c367b0
Subject: Patch 7.3.1244
Karsten Hopp c367b0
Fcc: outbox
Karsten Hopp c367b0
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c367b0
Mime-Version: 1.0
Karsten Hopp c367b0
Content-Type: text/plain; charset=UTF-8
Karsten Hopp c367b0
Content-Transfer-Encoding: 8bit
Karsten Hopp c367b0
------------
Karsten Hopp c367b0
Karsten Hopp c367b0
Patch 7.3.1244
Karsten Hopp c367b0
Problem:    MS-Windows: confirm() dialog text may not fit.
Karsten Hopp c367b0
Solution:   Use GetTextWidthEnc() instead of GetTextWidth(). (Yasuhiro
Karsten Hopp c367b0
	    Matsumoto)
Karsten Hopp c367b0
Files:	    src/gui_w32.c
Karsten Hopp c367b0
Karsten Hopp c367b0
Karsten Hopp c367b0
*** ../vim-7.3.1243/src/gui_w32.c	2013-05-06 04:21:35.000000000 +0200
Karsten Hopp c367b0
--- src/gui_w32.c	2013-06-26 12:55:32.000000000 +0200
Karsten Hopp c367b0
***************
Karsten Hopp c367b0
*** 3216,3222 ****
Karsten Hopp c367b0
  	    if (l == 1 && vim_iswhite(*pend)
Karsten Hopp c367b0
  					&& textWidth > maxDialogWidth * 3 / 4)
Karsten Hopp c367b0
  		last_white = pend;
Karsten Hopp c367b0
! 	    textWidth += GetTextWidth(hdc, pend, l);
Karsten Hopp c367b0
  	    if (textWidth >= maxDialogWidth)
Karsten Hopp c367b0
  	    {
Karsten Hopp c367b0
  		/* Line will wrap. */
Karsten Hopp c367b0
--- 3216,3222 ----
Karsten Hopp c367b0
  	    if (l == 1 && vim_iswhite(*pend)
Karsten Hopp c367b0
  					&& textWidth > maxDialogWidth * 3 / 4)
Karsten Hopp c367b0
  		last_white = pend;
Karsten Hopp c367b0
! 	    textWidth += GetTextWidthEnc(hdc, pend, l);
Karsten Hopp c367b0
  	    if (textWidth >= maxDialogWidth)
Karsten Hopp c367b0
  	    {
Karsten Hopp c367b0
  		/* Line will wrap. */
Karsten Hopp c367b0
*** ../vim-7.3.1243/src/version.c	2013-06-26 12:42:38.000000000 +0200
Karsten Hopp c367b0
--- src/version.c	2013-06-26 12:56:47.000000000 +0200
Karsten Hopp c367b0
***************
Karsten Hopp c367b0
*** 730,731 ****
Karsten Hopp c367b0
--- 730,733 ----
Karsten Hopp c367b0
  {   /* Add new patch number below this line */
Karsten Hopp c367b0
+ /**/
Karsten Hopp c367b0
+     1244,
Karsten Hopp c367b0
  /**/
Karsten Hopp c367b0
Karsten Hopp c367b0
-- 
Karsten Hopp c367b0
The psychic said, "God bless you."  I said, "I didn't sneeze."  She
Karsten Hopp c367b0
looked deep into my eyes and said, "You will, eventually."  And, damn
Karsten Hopp c367b0
if she wasn't right.  Two days later, I sneezed.  --Ellen Degeneres
Karsten Hopp c367b0
Karsten Hopp c367b0
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c367b0
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c367b0
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp c367b0
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///