0
0
mirror of https://github.com/vim/vim.git synced 2025-09-07 22:03:36 -04:00

updated for version 7.4.077

Problem:    DOS installer creates shortcut without a path, resulting in the
            current directory to be C:\Windows\system32.
Solution:   Use environment variables.
This commit is contained in:
Bram Moolenaar 2013-11-07 04:49:27 +01:00
parent fcea03ddd3
commit 03e228a623
2 changed files with 6 additions and 2 deletions

View File

@ -1773,9 +1773,11 @@ build_shortcut(
/* /*
* We used to use "homedir" as the working directory, but that is a bad choice * We used to use "homedir" as the working directory, but that is a bad choice
* on multi-user systems. Not specifying a directory appears to work best. * on multi-user systems. However, not specifying a directory results in the
* current directory to be c:\Windows\system32 on Windows 7. Use environment
* variables instead.
*/ */
#define WORKDIR "" #define WORKDIR "%HOMEDRIVE%%HOMEPATH%"
/* /*
* Create shortcut(s) in the Start Menu\Programs\Vim folder. * Create shortcut(s) in the Start Menu\Programs\Vim folder.

View File

@ -738,6 +738,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 */
/**/
77,
/**/ /**/
76, 76,
/**/ /**/