0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

updated for version 7.1-196

This commit is contained in:
Bram Moolenaar
2008-01-03 19:45:15 +00:00
parent 525ad4d05f
commit 6c9176db47
2 changed files with 18 additions and 6 deletions

View File

@@ -987,6 +987,11 @@ _WndProc(
{ {
LPNMTTDISPINFOW lpdi = (LPNMTTDISPINFOW)lParam; 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); tt_text = enc_to_ucs2(str, NULL);
lpdi->lpszText = tt_text; lpdi->lpszText = tt_text;
/* can't show tooltip if failed */ /* can't show tooltip if failed */
@@ -996,6 +1001,11 @@ _WndProc(
{ {
LPNMTTDISPINFO lpdi = (LPNMTTDISPINFO)lParam; 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) if (STRLEN(str) < sizeof(lpdi->szText)
|| ((tt_text = vim_strsave(str)) == NULL)) || ((tt_text = vim_strsave(str)) == NULL))
vim_strncpy(lpdi->szText, str, vim_strncpy(lpdi->szText, str,

View File

@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
196,
/**/ /**/
195, 195,
/**/ /**/