Mercurial > vim
diff src/dosinst.c @ 2448:628147a4b3b2 vim73
Fix: on MS-Windows the "open with..." menu starts Vim without a file.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 31 Jul 2010 20:53:54 +0200 |
parents | a2b15b1e626d |
children | 943280505f72 |
line wrap: on
line diff
--- a/src/dosinst.c +++ b/src/dosinst.c @@ -1468,11 +1468,15 @@ register_openwith( HKEY hRootKey, 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, "Applications\\gvim.exe\\shell\\edit\\command", NULL, - exe_path); + exe_cmd); if (ERROR_SUCCESS == lRet) {