projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing includes, intializers, consts
[apps/madmutt.git]
/
enter.c
diff --git
a/enter.c
b/enter.c
index
7cd96dc
..
b979a2e
100644
(file)
--- 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.
*/
* 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;
{
/* 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;
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;
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;
redraw = M_REDRAW_INIT;
break;