]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.077 v7.4.077
authorBram Moolenaar <Bram@vim.org>
Thu, 7 Nov 2013 03:49:27 +0000 (04:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 7 Nov 2013 03:49:27 +0000 (04:49 +0100)
Problem:    DOS installer creates shortcut without a path, resulting in the
            current directory to be C:\Windows\system32.
Solution:   Use environment variables.

src/dosinst.c
src/version.c

index 3c5e59bd5d9ee922c9707f58aea5b3dec764ec66..3fbfb5c5c2e13c84d06048c0470a6e935555e416 100644 (file)
@@ -1773,9 +1773,11 @@ build_shortcut(
 
 /*
  * 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.
index 770b3c8dba3d5c939bace2c8a333efb1d14da28f..6e11f7da18751b1f3e1b756942aa79308ab9d116 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    77,
 /**/
     76,
 /**/