aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eval.c1
-rw-r--r--src/main.c1
-rw-r--r--src/version.c2
-rw-r--r--src/vim.h1
4 files changed, 4 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index adb47d38b7..4704af1a68 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -389,6 +389,7 @@ static struct vimvar {
{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},
{VV_NAME("job_data", VAR_LIST), 0}
};
diff --git a/src/main.c b/src/main.c
index 14dd89e26d..6fee99203d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -930,6 +930,7 @@ static void parse_command_name(mparm_T *parmp)
set_vim_var_string(VV_PROGNAME, initstr, -1);
+ set_vim_var_string(VV_PROGPATH, (char_u *)parmp->argv[0], -1);
if (parse_string(&initstr, "editor", 6))
return;
diff --git a/src/version.c b/src/version.c
index 15410fb166..687a5161ad 100644
--- a/src/version.c
+++ b/src/version.c
@@ -227,7 +227,7 @@ static int included_patches[] = {
//237,
//236,
//235,
- //234,
+ 234,
233,
232,
//231,
diff --git a/src/vim.h b/src/vim.h
index 7922212cc8..705f92f189 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1305,6 +1305,7 @@ enum {
VV_HLSEARCH,
VV_OLDFILES,
VV_WINDOWID,
+ VV_PROGPATH,
VV_JOB_DATA,
VV_LEN, /* number of v: vars */
};