mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
54f425adc5
commit
62d6564b09
@ -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}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -227,7 +227,7 @@ static int included_patches[] = {
|
|||||||
//237,
|
//237,
|
||||||
//236,
|
//236,
|
||||||
//235,
|
//235,
|
||||||
//234,
|
234,
|
||||||
233,
|
233,
|
||||||
232,
|
232,
|
||||||
//231,
|
//231,
|
||||||
|
Loading…
Reference in New Issue
Block a user