[WINDOWSNT]: Force the first argv passed to execvp to point to alternate_editor
(otherwise .BAT scripts can't run).
This commit is contained in:
parent
8ea882655e
commit
b73ea44bb7
1 changed files with 3 additions and 0 deletions
|
@ -250,6 +250,9 @@ fail (argc, argv)
|
|||
if (alternate_editor)
|
||||
{
|
||||
int i = optind - 1;
|
||||
#ifdef WINDOWSNT
|
||||
argv[i] = (char *)alternate_editor;
|
||||
#endif
|
||||
execvp (alternate_editor, argv + i);
|
||||
fprintf (stderr, "%s: error executing alternate editor \"%s\"\n",
|
||||
progname, alternate_editor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue