summaryrefslogtreecommitdiff
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-26 12:58:32 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-26 12:58:32 +0200
commitf05d81102c263b746c344a71cd3aafdec96d9f38 (patch)
treedaaad55552acf522452a0c226f1fde7d522b915b /src/gui_w32.c
parentf86c0b01a74fa3e5e37033ac037ef3af41d81a8d (diff)
downloadvim-f05d81102c263b746c344a71cd3aafdec96d9f38.zip
updated for version 7.3.1244
Problem: MS-Windows: confirm() dialog text may not fit. Solution: Use GetTextWidthEnc() instead of GetTextWidth(). (Yasuhiro Matsumoto)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index c7a7b605c..5ff619267 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -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. */