Fix: on MS-Windows the "open with..." menu starts Vim without a file.
This commit is contained in:
@ -30,9 +30,6 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
|
|||||||
*known-bugs*
|
*known-bugs*
|
||||||
-------------------- Known bugs and current work -----------------------
|
-------------------- Known bugs and current work -----------------------
|
||||||
|
|
||||||
Windows 7: "Open with..." menu starts Vim without a file.
|
|
||||||
Need to use other registry methods in if_ole.cpp?
|
|
||||||
|
|
||||||
Windows 7: installing Vim again doesn't find the previously installed Vim.
|
Windows 7: installing Vim again doesn't find the previously installed Vim.
|
||||||
|
|
||||||
Move more common code from if_python.c and if_python3.c to if_py_both.h
|
Move more common code from if_python.c and if_python3.c to if_py_both.h
|
||||||
@ -45,6 +42,8 @@ Cursor positioning wrong with 0x200e character. (John Becket, 2010 May 6)
|
|||||||
Test 69 breaks on MS-Windows, both 32 and 64 builds. (George Reilly, 2010 Feb
|
Test 69 breaks on MS-Windows, both 32 and 64 builds. (George Reilly, 2010 Feb
|
||||||
26)
|
26)
|
||||||
|
|
||||||
|
Should readfile() ignore BOM when not in binary mode?
|
||||||
|
|
||||||
Bug: searching for tags file uses 'suffixesadd', should not happen. (Dominique
|
Bug: searching for tags file uses 'suffixesadd', should not happen. (Dominique
|
||||||
Pelle, 2010 June 28)
|
Pelle, 2010 June 28)
|
||||||
|
|
||||||
|
|||||||
@ -1468,11 +1468,15 @@ register_openwith(
|
|||||||
HKEY hRootKey,
|
HKEY hRootKey,
|
||||||
const char *exe_path)
|
const char *exe_path)
|
||||||
{
|
{
|
||||||
LONG lRet = reg_create_key_and_value(
|
char exe_cmd[BUFSIZE];
|
||||||
|
LONG lRet;
|
||||||
|
|
||||||
|
sprintf(exe_cmd, "%s \"%%1\"", exe_path);
|
||||||
|
lRet = reg_create_key_and_value(
|
||||||
hRootKey,
|
hRootKey,
|
||||||
"Applications\\gvim.exe\\shell\\edit\\command",
|
"Applications\\gvim.exe\\shell\\edit\\command",
|
||||||
NULL,
|
NULL,
|
||||||
exe_path);
|
exe_cmd);
|
||||||
|
|
||||||
if (ERROR_SUCCESS == lRet)
|
if (ERROR_SUCCESS == lRet)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user