waddstr (stdscr, field);
mutt_refresh ();
getyx (stdscr, y, x);
- ret = _mutt_enter_string(buf, buflen, y, x, complete, multiple, files,
+ ret = mutt_enter_string(buf, buflen, y, x, complete, multiple, files,
numfiles, es);
} while (ret == 1);
CLEARLINE(stdscr, LINES - 1);
p_delete(&savebuf);
}
-/*
- * Returns:
- * 1 need to redraw the screen and call me again
- * 0 if input was given
- * -1 if abort.
- */
-
-int mutt_enter_string (char *buf, size_t buflen, int y, int x, int flags)
-{
- int rv;
- ENTER_STATE *es = mutt_new_enter_state ();
-
- rv = _mutt_enter_string(buf, buflen, y, x, flags, 0, NULL, NULL, es);
- mutt_free_enter_state (&es);
- return rv;
-}
-
-int _mutt_enter_string (char *buf, size_t buflen, int y, int x,
- int flags, int multiple, char ***files, int *numfiles,
- ENTER_STATE * state)
+int mutt_enter_string (char *buf, size_t buflen, int y, int x,
+ int flags, int multiple, char ***files, int *numfiles,
+ ENTER_STATE * state)
{
int width = COLS - x - 1;
int redraw;
#define mutt_new_enter_state() p_new(ENTER_STATE, 1)
void mutt_free_enter_state (ENTER_STATE **);
-int mutt_enter_string (char *buf, size_t buflen, int y, int x, int flags);
-int _mutt_enter_string (char *, size_t, int, int, int, int, char ***, int *,
+int mutt_enter_string (char *, size_t, int, int, int, int, char ***, int *,
ENTER_STATE *);
#endif /* !_MUTT_ENTER_H */