projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add more encoding arrays
[apps/madmutt.git]
/
curs_lib.c
diff --git
a/curs_lib.c
b/curs_lib.c
index
be5583f
..
3e9f31a
100644
(file)
--- a/
curs_lib.c
+++ b/
curs_lib.c
@@
-18,6
+18,7
@@
#include <lib-lib/mem.h>
#include <lib-lib/str.h>
#include <lib-lib/macros.h>
#include <lib-lib/mem.h>
#include <lib-lib/str.h>
#include <lib-lib/macros.h>
+#include <lib-lib/file.h>
#include "mutt.h"
#include "enter.h"
#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);
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))
mutt_refresh ();
ch = mutt_getch ();
if (CI_is_return (ch.ch))
@@
-420,7
+421,7
@@
int mutt_do_pager (const char *banner,
{
int rc;
{
int rc;
- if (!Pager ||
str_cmp
(Pager, "builtin") == 0)
+ if (!Pager ||
m_strcmp
(Pager, "builtin") == 0)
rc = mutt_pager (banner, tempfile, do_color, info);
else {
char cmd[STRING];
rc = mutt_pager (banner, tempfile, do_color, info);
else {
char cmd[STRING];
@@
-530,7
+531,7
@@
int mutt_multi_choice (char *prompt, char *letters)
mvaddstr (LINES - 1, 0, prompt);
clrtoeol ();
mvaddstr (LINES - 1, 0, prompt);
clrtoeol ();
-
FOREVER
{
+
for (;;)
{
mutt_refresh ();
ch = mutt_getch ();
if (ch.ch == -1 || CI_is_return (ch.ch)) {
mutt_refresh ();
ch = mutt_getch ();
if (ch.ch == -1 || CI_is_return (ch.ch)) {