Skip to content

Commit 06572bf

Browse files
committed
updated for version 7.3.1245
Problem: MS-Windows: confirm() dialog text may still not fit. Solution: Use GetTextWidthEnc() instead of GetTextWidth() in two more places. (Yasuhiro Matsumoto)
1 parent 3be3a71 commit 06572bf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/gui_w32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3282,7 +3282,7 @@ gui_mch_dialog(
32823282
pend = vim_strchr(pstart, DLG_BUTTON_SEP);
32833283
if (pend == NULL)
32843284
pend = pstart + STRLEN(pstart); // Last button name.
3285-
textWidth = GetTextWidth(hdc, pstart, (int)(pend - pstart));
3285+
textWidth = GetTextWidthEnc(hdc, pstart, (int)(pend - pstart));
32863286
if (textWidth < minButtonWidth)
32873287
textWidth = minButtonWidth;
32883288
textWidth += dlgPaddingX; /* Padding within button */
@@ -3307,7 +3307,7 @@ gui_mch_dialog(
33073307
pend = vim_strchr(pstart, DLG_BUTTON_SEP);
33083308
if (pend == NULL)
33093309
pend = pstart + STRLEN(pstart); // Last button name.
3310-
textWidth = GetTextWidth(hdc, pstart, (int)(pend - pstart));
3310+
textWidth = GetTextWidthEnc(hdc, pstart, (int)(pend - pstart));
33113311
textWidth += dlgPaddingX; /* Padding within button */
33123312
textWidth += DLG_VERT_PADDING_X * 2; /* Padding around button */
33133313
if (textWidth > dlgwidth)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ static char *(features[]) =
728728

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
1245,
731733
/**/
732734
1244,
733735
/**/

0 commit comments

Comments
 (0)