mirror of
https://github.com/vim/vim.git
synced 2025-10-17 07:44:28 -04:00
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