diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-01-03 19:45:15 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-01-03 19:45:15 +0000 |
commit | 6c9176db470b90b275c3c5a3d53808bba8970a1a (patch) | |
tree | bc616c8cba648300385860d3120c13fd70da7928 /src | |
parent | 525ad4d05fe5df6d8d5b9c7daa5f5dcb91c3d9d8 (diff) | |
download | vim-git-6c9176db470b90b275c3c5a3d53808bba8970a1a.tar.gz |
updated for version 7.1-196v7.1.196
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_w32.c | 22 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 18 insertions, 6 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index bcc1524a9..aad613c7b 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -987,6 +987,11 @@ _WndProc( { LPNMTTDISPINFOW lpdi = (LPNMTTDISPINFOW)lParam; + /* Set the maximum width, this also enables using + * \n for line break. */ + SendMessage(lpdi->hdr.hwndFrom, TTM_SETMAXTIPWIDTH, + 0, 500); + tt_text = enc_to_ucs2(str, NULL); lpdi->lpszText = tt_text; /* can't show tooltip if failed */ @@ -996,6 +1001,11 @@ _WndProc( { LPNMTTDISPINFO lpdi = (LPNMTTDISPINFO)lParam; + /* Set the maximum width, this also enables using + * \n for line break. */ + SendMessage(lpdi->hdr.hwndFrom, TTM_SETMAXTIPWIDTH, + 0, 500); + if (STRLEN(str) < sizeof(lpdi->szText) || ((tt_text = vim_strsave(str)) == NULL)) vim_strncpy(lpdi->szText, str, @@ -4734,12 +4744,12 @@ Handle_WM_Notify(hwnd, pnmh) cur_beval->showState = ShS_NEUTRAL; break; case TTN_GETDISPINFO: - { - /* if you get there then we have new common controls */ - NMTTDISPINFO_NEW *info = (NMTTDISPINFO_NEW *)pnmh; - info->lpszText = (LPSTR)info->lParam; - info->uFlags |= TTF_DI_SETITEM; - } + { + /* if you get there then we have new common controls */ + NMTTDISPINFO_NEW *info = (NMTTDISPINFO_NEW *)pnmh; + info->lpszText = (LPSTR)info->lParam; + info->uFlags |= TTF_DI_SETITEM; + } break; } } diff --git a/src/version.c b/src/version.c index d60f52d02..5846a406f 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 196, +/**/ 195, /**/ 194, |