File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -576,6 +576,7 @@ static int *list_and_choose(struct menu_opts *opts, struct menu_stuff *stuff)
576
576
clean_get_color (CLEAN_COLOR_RESET ));
577
577
}
578
578
579
+ fflush (stdout );
579
580
if (strbuf_getline (& choice , stdin , '\n' ) != EOF ) {
580
581
strbuf_trim (& choice );
581
582
} else {
@@ -658,6 +659,7 @@ static int filter_by_patterns_cmd(void)
658
659
clean_print_color (CLEAN_COLOR_PROMPT );
659
660
printf (_ ("Input ignore patterns>> " ));
660
661
clean_print_color (CLEAN_COLOR_RESET );
662
+ fflush (stdout );
661
663
if (strbuf_getline (& confirm , stdin , '\n' ) != EOF )
662
664
strbuf_trim (& confirm );
663
665
else
@@ -755,6 +757,7 @@ static int ask_each_cmd(void)
755
757
if (!eof ) {
756
758
qname = quote_path_relative (item -> string , NULL , & buf );
757
759
printf (_ ("remove %s? " ), qname );
760
+ fflush (stdout );
758
761
if (strbuf_getline (& confirm , stdin , '\n' ) != EOF ) {
759
762
strbuf_trim (& confirm );
760
763
} else {
You can’t perform that action at this time.
0 commit comments