X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=enter.c;fp=enter.c;h=b979a2ed5db33e966f803fb0e9a2acc19ae9f3cb;hp=7cd96dce34c15d01280632cfbbff04f2c9ce4d51;hb=c25bc063f35aaad6938c2022dae7a283346c2769;hpb=9218fd9d7e2a7976b34683c60cb94f7fda42141a diff --git a/enter.c b/enter.c index 7cd96dc..b979a2e 100644 --- a/enter.c +++ b/enter.c @@ -145,7 +145,7 @@ size_t my_mbstowcs (wchar_t ** pwbuf, size_t * pwbuflen, size_t i, char *buf) * Replace part of the wchar_t buffer, from FROM to CURPOS, by BUF. */ -static void replace_part (ENTER_STATE * state, size_t from, char *buf) +static void replace_part (ENTER_STATE *state, size_t from, const char *buf) { /* Save the suffix */ size_t savelen = state->lastchar - state->curpos; @@ -275,13 +275,13 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x, switch (ch) { case OP_EDITOR_HISTORY_UP: state->curpos = state->lastchar; - replace_part (state, 0, mutt_history_prev (hclass)); + replace_part(state, 0, mutt_history_prev(hclass)); redraw = M_REDRAW_INIT; break; case OP_EDITOR_HISTORY_DOWN: state->curpos = state->lastchar; - replace_part (state, 0, mutt_history_next (hclass)); + replace_part(state, 0, mutt_history_next(hclass)); redraw = M_REDRAW_INIT; break;