updated for version 7.4.234
Problem: Can't get the command that was used to start Vim.
Solution: Add v:progpath. (Viktor Kojouharov)
diff --git a/src/eval.c b/src/eval.c
index d9785c4..246e404 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -361,6 +361,7 @@
{VV_NAME("hlsearch", VAR_NUMBER), 0},
{VV_NAME("oldfiles", VAR_LIST), 0},
{VV_NAME("windowid", VAR_NUMBER), VV_RO},
+ {VV_NAME("progpath", VAR_STRING), VV_RO},
};
/* shorthand */
diff --git a/src/main.c b/src/main.c
index f9bd873..c29d6be 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1602,6 +1602,7 @@
#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')
diff --git a/src/version.c b/src/version.c
index 0fcea78..542342f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 234,
+/**/
233,
/**/
232,
diff --git a/src/vim.h b/src/vim.h
index ac2ca30..e83ea4a 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1880,7 +1880,8 @@
#define VV_HLSEARCH 54
#define VV_OLDFILES 55
#define VV_WINDOWID 56
-#define VV_LEN 57 /* number of v: vars */
+#define VV_PROGPATH 57
+#define VV_LEN 58 /* number of v: vars */
#ifdef FEAT_CLIPBOARD