diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index a155073c072..28e626f77d0 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -250,6 +250,9 @@ fail (argc, argv) | |||
| 250 | if (alternate_editor) | 250 | if (alternate_editor) |
| 251 | { | 251 | { |
| 252 | int i = optind - 1; | 252 | int i = optind - 1; |
| 253 | #ifdef WINDOWSNT | ||
| 254 | argv[i] = (char *)alternate_editor; | ||
| 255 | #endif | ||
| 253 | execvp (alternate_editor, argv + i); | 256 | execvp (alternate_editor, argv + i); |
| 254 | fprintf (stderr, "%s: error executing alternate editor \"%s\"\n", | 257 | fprintf (stderr, "%s: error executing alternate editor \"%s\"\n", |
| 255 | progname, alternate_editor); | 258 | progname, alternate_editor); |