diff options
author | Bram Moolenaar <bram@vim.org> | 2013-06-26 12:58:32 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2013-06-26 12:58:32 +0200 |
commit | f3ab5af3eed746a44000fc0f211a3ea199f1128e (patch) | |
tree | c73bb5f1ee80f8a726969946a0d52e033faa0933 | |
parent | 13f1fc190d72e451911041488c466545a2e6d14d (diff) | |
download | vim-f3ab5af3eed746a44000fc0f211a3ea199f1128e.tar.gz |
Problem: MS-Windows: confirm() dialog text may not fit.
Solution: Use GetTextWidthEnc() instead of GetTextWidth(). (Yasuhiro
Matsumoto)
-rw-r--r-- | src/gui_w32.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index c7a7b605..5ff61926 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. */ diff --git a/src/version.c b/src/version.c index c1cf11dd..9c646e60 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1244, +/**/ 1243, /**/ 1242, |