mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
updated for version 7.1-196
This commit is contained in:
@@ -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,
|
||||||
@@ -4734,12 +4744,12 @@ Handle_WM_Notify(hwnd, pnmh)
|
|||||||
cur_beval->showState = ShS_NEUTRAL;
|
cur_beval->showState = ShS_NEUTRAL;
|
||||||
break;
|
break;
|
||||||
case TTN_GETDISPINFO:
|
case TTN_GETDISPINFO:
|
||||||
{
|
{
|
||||||
/* if you get there then we have new common controls */
|
/* if you get there then we have new common controls */
|
||||||
NMTTDISPINFO_NEW *info = (NMTTDISPINFO_NEW *)pnmh;
|
NMTTDISPINFO_NEW *info = (NMTTDISPINFO_NEW *)pnmh;
|
||||||
info->lpszText = (LPSTR)info->lParam;
|
info->lpszText = (LPSTR)info->lParam;
|
||||||
info->uFlags |= TTF_DI_SETITEM;
|
info->uFlags |= TTF_DI_SETITEM;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user