]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1244 v7.3.1244
authorBram Moolenaar <Bram@vim.org>
Wed, 26 Jun 2013 10:58:32 +0000 (12:58 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 26 Jun 2013 10:58:32 +0000 (12:58 +0200)
Problem:    MS-Windows: confirm() dialog text may not fit.
Solution:   Use GetTextWidthEnc() instead of GetTextWidth(). (Yasuhiro
            Matsumoto)

src/gui_w32.c
src/version.c

index c7a7b605cc8e26ddf6123c86a4d48fd198a40a52..5ff619267945dee699354309f349cabc9f5f7174 100644 (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. */
index c1cf11ddd15a9d6e7b674ca39dea9e63cebb0fb4..9c646e600be93beb4c2293f11dc91cf573bbcb82 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1244,
 /**/
     1243,
 /**/