Commit b6b6d6d2 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(decode_options): Fix handling of alternate editor.

parent cff301be
......@@ -92,6 +92,8 @@ decode_options (argc, argv)
int argc;
char **argv;
{
alternate_editor = getenv ("ALTERNATE_EDITOR");
while (1)
{
int opt = getopt_long (argc, argv,
......@@ -100,8 +102,6 @@ decode_options (argc, argv)
if (opt == EOF)
break;
alternate_editor = getenv ("ALTERNATE_EDITOR");
switch (opt)
{
case 0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment