| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 04c6a96 commit 0f19e16
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -626,6 +626,7 @@ main(int argc_orig, char **argv) | |||
| 626 | 626 | while (!com_line()); | |
| 627 | 627 | reading_from_dash = FALSE; | |
| 628 | 628 | interactive = FALSE; | |
| 629 | + noinputfiles = FALSE; | ||
| 629 | 630 | ||
| 630 | 631 | } else if (strcmp(*argv, "-e") == 0) { | |
| 631 | 632 | int save_state = interactive; | |
@@ -635,6 +636,7 @@ main(int argc_orig, char **argv) | |||
| 635 | 636 | return 0; | |
| 636 | 637 | } | |
| 637 | 638 | interactive = FALSE; | |
| 639 | + noinputfiles = FALSE; | ||
| 638 | 640 | do_string(*argv); | |
| 639 | 641 | interactive = save_state; | |
| 640 | 642 | ||
@@ -671,9 +673,10 @@ main(int argc_orig, char **argv) | |||
| 671 | 673 | } | |
| 672 | 674 | ||
| 673 | 675 | /* take commands from stdin */ | |
| 674 | - if (noinputfiles) | ||
| 676 | + if (noinputfiles) { | ||
| 675 | 677 | while (!com_line()) | |
| 676 | 678 | ctrlc_flag = FALSE; /* reset asynchronous Ctrl-C flag */ | |
| 679 | + } | ||
| 677 | 680 | ||
| 678 | 681 | #ifdef _WIN32 | |
| 679 | 682 | /* On Windows, handle 'persist' by keeping the main input loop running (windows/wxt), */ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments