On 2014-03-13, Viktor Kojouharov wrote: > Hi Bram, > > I made a patch which adds a new variable, 'v:progpath'. Quite > similar to 'v:progname', but including the full invocation path of > the current vim instance. The full path itself is quite useful > when you want to do tricks with vim servers and --remote-expr, and > you don't have to care whether vim is in the $PATH.
> diff -r a42040fed96c src/main.c > --- a/src/main.c Tue Jan 14 21:31:34 2014 +0100 > +++ b/src/main.c Thu Mar 13 23:02:21 2014 +0200 > @@ -1611,6 +1611,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') If I'm reading your patch correctly, it assumes that argv[0] contains the full path to the executable. That's not true in general. Regards, Gary -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
