updated for version 7.3.1244

Problem:    MS-Windows: confirm() dialog text may not fit.
Solution:   Use GetTextWidthEnc() instead of GetTextWidth(). (Yasuhiro
	    Matsumoto)
This commit is contained in:
Bram Moolenaar
2013-06-26 12:58:32 +02:00
parent 5a7e9744f8
commit 2fdd7f1c92
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -3216,7 +3216,7 @@ gui_mch_dialog(
if (l == 1 && vim_iswhite(*pend)
&& textWidth > maxDialogWidth * 3 / 4)
last_white = pend;
textWidth += GetTextWidth(hdc, pend, l);
textWidth += GetTextWidthEnc(hdc, pend, l);
if (textWidth >= maxDialogWidth)
{
/* Line will wrap. */
+2
View File
@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1244,
/**/
1243,
/**/