Revision 8af42882 readline.c
b/readline.c | ||
---|---|---|
236 | 236 |
new_entry = hist_entry; |
237 | 237 |
/* Put this entry at the end of history */ |
238 | 238 |
memmove(&rs->history[idx], &rs->history[idx + 1], |
239 |
(READLINE_MAX_CMDS - idx + 1) * sizeof(char *));
|
|
239 |
(READLINE_MAX_CMDS - (idx + 1)) * sizeof(char *));
|
|
240 | 240 |
rs->history[READLINE_MAX_CMDS - 1] = NULL; |
241 | 241 |
for (; idx < READLINE_MAX_CMDS; idx++) { |
242 | 242 |
if (rs->history[idx] == NULL) |
Also available in: Unified diff