1
0
forked from aniani/vim

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 f86c0b01a7
commit f05d81102c
2 changed files with 3 additions and 1 deletions

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. */

View File

@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1244,
/**/
1243,
/**/