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
@@ -756,6 +758,7 @@ static int ask_each_cmd(void)
756
758
qname = quote_path_relative (item -> string , NULL , & buf );
757
759
/* TRANSLATORS: Make sure to keep [y/N] as is */
758
760
printf (_ ("Remove %s [y/N]? " ), qname );
761
+ fflush (stdout );
759
762
if (strbuf_getline (& confirm , stdin , '\n' ) != EOF ) {
760
763
strbuf_trim (& confirm );
761
764
} else {
You can’t perform that action at this time.
0 commit comments