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)
576576 clean_get_color (CLEAN_COLOR_RESET ));
577577 }
578578
579+ fflush (stdout );
579580 if (strbuf_getline (& choice , stdin , '\n' ) != EOF ) {
580581 strbuf_trim (& choice );
581582 } else {
@@ -658,6 +659,7 @@ static int filter_by_patterns_cmd(void)
658659 clean_print_color (CLEAN_COLOR_PROMPT );
659660 printf (_ ("Input ignore patterns>> " ));
660661 clean_print_color (CLEAN_COLOR_RESET );
662+ fflush (stdout );
661663 if (strbuf_getline (& confirm , stdin , '\n' ) != EOF )
662664 strbuf_trim (& confirm );
663665 else
@@ -755,6 +757,7 @@ static int ask_each_cmd(void)
755757 if (!eof ) {
756758 qname = quote_path_relative (item -> string , NULL , & buf );
757759 printf (_ ("remove %s? " ), qname );
760+ fflush (stdout );
758761 if (strbuf_getline (& confirm , stdin , '\n' ) != EOF ) {
759762 strbuf_trim (& confirm );
760763 } else {
You can’t perform that action at this time.
0 commit comments