# HG changeset patch # User Bram Moolenaar # Date 1372244312 -7200 # Node ID b4a71dbdb78790ca423103ad5deb71b1df9b5b04 # Parent de6925a3a1b500ba02b1305c3f6210869b51d8ae updated for version 7.3.1244 Problem: MS-Windows: confirm() dialog text may not fit. Solution: Use GetTextWidthEnc() instead of GetTextWidth(). (Yasuhiro Matsumoto) diff --git a/src/gui_w32.c b/src/gui_w32.c --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -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. */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1244, +/**/ 1243, /**/ 1242,