X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=curs_lib.c;h=3e9f31a4cb57505cee82c78fc8773dd4ed4c5a04;hp=4203b0ee7a5d2686943e893c6fd19bcfc5f07768;hb=a743b55a20cbf3a33699fdb24dcb8638e878cc46;hpb=2ea77d3b2827ba23feb756ce2fb936565ae38998 diff --git a/curs_lib.c b/curs_lib.c index 4203b0e..3e9f31a 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "mutt.h" #include "enter.h" @@ -209,7 +210,7 @@ int mutt_yesorno (const char *msg, int def) printw ("%.*s%s", COLS - answer_string_len, msg, answer_string); p_delete(&answer_string); - FOREVER { + for (;;) { mutt_refresh (); ch = mutt_getch (); if (CI_is_return (ch.ch)) @@ -530,7 +531,7 @@ int mutt_multi_choice (char *prompt, char *letters) mvaddstr (LINES - 1, 0, prompt); clrtoeol (); - FOREVER { + for (;;) { mutt_refresh (); ch = mutt_getch (); if (ch.ch == -1 || CI_is_return (ch.ch)) {