FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

repair previous commit · gnuplot/gnuplot@0f19e16 · GitHub

Repository navigation

Commit 0f19e16

Browse files
Ethan A Merritt
committed
repair previous commit
the attempt to make 'gnuplot -e "command"' and 'gnuplot -e "command" -' more similar changed the wrong side of the difference.
1 parent 04c6a96 commit 0f19e16

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/plot.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ main(int argc_orig, char **argv)
626626
while (!com_line());
627627
reading_from_dash = FALSE;
628628
interactive = FALSE;
629+
noinputfiles = FALSE;
629630

630631
} else if (strcmp(*argv, "-e") == 0) {
631632
int save_state = interactive;
@@ -635,6 +636,7 @@ main(int argc_orig, char **argv)
635636
return 0;
636637
}
637638
interactive = FALSE;
639+
noinputfiles = FALSE;
638640
do_string(*argv);
639641
interactive = save_state;
640642

@@ -671,9 +673,10 @@ main(int argc_orig, char **argv)
671673
}
672674

673675
/* take commands from stdin */
674-
if (noinputfiles)
676+
if (noinputfiles) {
675677
while (!com_line())
676678
ctrlc_flag = FALSE; /* reset asynchronous Ctrl-C flag */
679+
}
677680

678681
#ifdef _WIN32
679682
/* On Windows, handle 'persist' by keeping the main input loop running (windows/wxt), */

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL