mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.4.459
Problem: Can't change the icon after building Vim. Solution: Load the icon from a file on startup. (Yasuhiro Matsumoto)
This commit is contained in:
@@ -2446,7 +2446,8 @@ SaveConsoleTitleAndIcon(void)
|
||||
return;
|
||||
|
||||
/* Extract the first icon contained in the Vim executable. */
|
||||
g_hVimIcon = ExtractIcon(NULL, exe_name, 0);
|
||||
if (mch_icon_load((HANDLE *)&g_hVimIcon) == FAIL || g_hVimIcon == NULL)
|
||||
g_hVimIcon = ExtractIcon(NULL, exe_name, 0);
|
||||
if (g_hVimIcon != NULL)
|
||||
g_fCanChangeIcon = TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user