diff src/main.c @ 5780:d2286df8719d v7.4.234

updated for version 7.4.234 Problem: Can't get the command that was used to start Vim. Solution: Add v:progpath. (Viktor Kojouharov)
author Bram Moolenaar <bram@vim.org>
date Tue, 01 Apr 2014 19:55:49 +0200
parents 50dbef5e774a
children 66eead134d68
line wrap: on
line diff
--- a/src/main.c
+++ b/src/main.c
@@ -1602,6 +1602,7 @@ parse_command_name(parmp)
 
 #ifdef FEAT_EVAL
     set_vim_var_string(VV_PROGNAME, initstr, -1);
+    set_vim_var_string(VV_PROGPATH, (char_u *)parmp->argv[0], -1);
 #endif
 
     if (TOLOWER_ASC(initstr[0]) == 'r')