vim-patch:7.4.234

Problem:  Can't get the command that was used to start Vim.

Solution: Add v:progpath. (Viktor Kojouharov)

https://code.google.com/p/vim/source/detail?r=d2286df8719d6e99c743e3bf6ac14d1f9debc84d
This commit is contained in:
Marco Hinz 2014-04-14 14:39:39 +02:00 committed by Thiago de Arruda
parent 54f425adc5
commit 62d6564b09
4 changed files with 4 additions and 1 deletions

View File

@ -389,6 +389,7 @@ static struct vimvar {
{VV_NAME("hlsearch", VAR_NUMBER), 0}, {VV_NAME("hlsearch", VAR_NUMBER), 0},
{VV_NAME("oldfiles", VAR_LIST), 0}, {VV_NAME("oldfiles", VAR_LIST), 0},
{VV_NAME("windowid", VAR_NUMBER), VV_RO}, {VV_NAME("windowid", VAR_NUMBER), VV_RO},
{VV_NAME("progpath", VAR_STRING), VV_RO},
{VV_NAME("job_data", VAR_LIST), 0} {VV_NAME("job_data", VAR_LIST), 0}
}; };

View File

@ -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_PROGNAME, initstr, -1);
set_vim_var_string(VV_PROGPATH, (char_u *)parmp->argv[0], -1);
if (parse_string(&initstr, "editor", 6)) if (parse_string(&initstr, "editor", 6))
return; return;

View File

@ -227,7 +227,7 @@ static int included_patches[] = {
//237, //237,
//236, //236,
//235, //235,
//234, 234,
233, 233,
232, 232,
//231, //231,

View File

@ -1305,6 +1305,7 @@ enum {
VV_HLSEARCH, VV_HLSEARCH,
VV_OLDFILES, VV_OLDFILES,
VV_WINDOWID, VV_WINDOWID,
VV_PROGPATH,
VV_JOB_DATA, VV_JOB_DATA,
VV_LEN, /* number of v: vars */ VV_LEN, /* number of v: vars */
}; };