Use the new name H_SETSIZE instead of the old H_EVENT to set the history

size.

PR:	86355
This commit is contained in:
Stefan Farfeleder 2005-10-19 15:37:43 +00:00
parent 09f3617564
commit 2110d9c31a
4 changed files with 4 additions and 4 deletions

View File

@ -156,7 +156,7 @@ sethistsize(hs)
if (hs == NULL || *hs == '\0' ||
(histsize = atoi(hs)) < 0)
histsize = 100;
history(hist, &he, H_EVENT, histsize);
history(hist, &he, H_SETSIZE, histsize);
}
}

View File

@ -223,7 +223,7 @@ cmdloop(void)
printactive(0);
hist = history_init();
history(hist, &he, H_EVENT, 100); /* 100 elt history buffer */
history(hist, &he, H_SETSIZE, 100); /* 100 elt history buffer */
elptr = el_init("fsdb", stdin, stdout, stderr);
el_set(elptr, EL_EDITOR, "emacs");

View File

@ -635,7 +635,7 @@ command()
if (vrbose) {
el = el_init("tftp", stdin, stdout, stderr);
hist = history_init();
history(hist, &he, H_EVENT, 100);
history(hist, &he, H_SETSIZE, 100);
el_set(el, EL_HIST, history, hist);
el_set(el, EL_EDITOR, "emacs");
el_set(el, EL_PROMPT, command_prompt);

View File

@ -1130,7 +1130,7 @@ input (int *cmd)
el = el_init("cdcontrol", stdin, stdout,
stderr);
hist = history_init();
history(hist, &he, H_EVENT, 100);
history(hist, &he, H_SETSIZE, 100);
el_set(el, EL_HIST, history, hist);
el_set(el, EL_EDITOR, "emacs");
el_set(el, EL_PROMPT, cdcontrol_prompt);