0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.1.2233: cannot get the Vim command line arguments

Problem:    Cannot get the Vim command line arguments.
Solution:   Add v:argv. (Dmitri Vereshchagin, closes #1322)
This commit is contained in:
Bram Moolenaar
2019-10-29 04:16:57 +01:00
parent 8b530c1ff9
commit 69bf634858
8 changed files with 53 additions and 4 deletions

View File

@@ -1009,7 +1009,11 @@ common_init(mparm_T *paramp)
TIME_MSG("inits 1");
#ifdef FEAT_EVAL
set_lang_var(); /* set v:lang and v:ctype */
// set v:lang and v:ctype
set_lang_var();
// set v:argv
set_argv_var(paramp->argv, paramp->argc);
#endif
#ifdef FEAT_SIGNS