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)
|
||||
&& textWidth > maxDialogWidth * 3 / 4)
|
||||
last_white = pend;
|
||||
textWidth += GetTextWidth(hdc, pend, l);
|
||||
textWidth += GetTextWidthEnc(hdc, pend, l);
|
||||
if (textWidth >= maxDialogWidth)
|
||||
{
|
||||
/* Line will wrap. */
|
||||
|
||||
Reference in New Issue
Block a user