Skip to content

Commit 2fdd7f1

Browse files
committed
updated for version 7.3.1244
Problem: MS-Windows: confirm() dialog text may not fit. Solution: Use GetTextWidthEnc() instead of GetTextWidth(). (Yasuhiro Matsumoto)
1 parent 5a7e974 commit 2fdd7f1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/gui_w32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3216,7 +3216,7 @@ gui_mch_dialog(
32163216
if (l == 1 && vim_iswhite(*pend)
32173217
&& textWidth > maxDialogWidth * 3 / 4)
32183218
last_white = pend;
3219-
textWidth += GetTextWidth(hdc, pend, l);
3219+
textWidth += GetTextWidthEnc(hdc, pend, l);
32203220
if (textWidth >= maxDialogWidth)
32213221
{
32223222
/* Line will wrap. */

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+
1244,
731733
/**/
732734
1243,
733735
/**/

0 commit comments

Comments
 (0)