diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-05 21:07:39 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-05 21:07:39 +0000 |
commit | c97f93d25ccd4fdfab3ab764efaf465c430c09c1 (patch) | |
tree | 473262bfae899e2b646091473441d095f850ec60 /curs_lib.c | |
parent | 50d787a081ce9a5415a62275ed5601b9ee1270ce (diff) |
macro_function.2-3, from Vikas.
Diffstat (limited to 'curs_lib.c')
-rw-r--r-- | curs_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -131,8 +131,8 @@ void mutt_edit_file (const char *editor, const char *data) int mutt_yesorno (const char *msg, int def) { event_t ch; - const char *yes = _("yes"); - const char *no = _("no"); + char *yes = _("yes"); + char *no = _("no"); CLEARLINE(LINES-1); printw("%s ([%c]/%c): ", msg, def ? *yes : *no, @@ -328,7 +328,7 @@ int mutt_enter_fname (const char *prompt, char *buf, size_t blen, int *redraw, i char *pc = safe_malloc (strlen (prompt) + 3); sprintf (pc, "%s: ", prompt); - mutt_ungetch (ch.ch, 0); + mutt_ungetch (ch.op ? 0 : ch.ch, ch.op ? ch.op : 0); if (mutt_get_field (pc, buf, blen, (buffy ? M_EFILE : M_FILE) | M_CLEAR) != 0) buf[0] = 0; |