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:
@@ -3216,7 +3216,7 @@ gui_mch_dialog(
|
|||||||
if (l == 1 && vim_iswhite(*pend)
|
if (l == 1 && vim_iswhite(*pend)
|
||||||
&& textWidth > maxDialogWidth * 3 / 4)
|
&& textWidth > maxDialogWidth * 3 / 4)
|
||||||
last_white = pend;
|
last_white = pend;
|
||||||
textWidth += GetTextWidth(hdc, pend, l);
|
textWidth += GetTextWidthEnc(hdc, pend, l);
|
||||||
if (textWidth >= maxDialogWidth)
|
if (textWidth >= maxDialogWidth)
|
||||||
{
|
{
|
||||||
/* Line will wrap. */
|
/* Line will wrap. */
|
||||||
|
@@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1244,
|
||||||
/**/
|
/**/
|
||||||
1243,
|
1243,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user