Got rid of a segfault bug in the new history stuff...

SVN revision: 1268
This commit is contained in:
Richard Barnes 1999-11-12 09:50:31 +00:00
parent 4ec2ea2a37
commit a87dedb19e
1 changed files with 3 additions and 1 deletions

View File

@ -53,6 +53,7 @@ hist_last(void *data)
{
if (current_command > 0)
Epplet_change_textbox(textbox, command_history[--current_command]);
return;
data = NULL;
}
@ -60,8 +61,9 @@ hist_last(void *data)
static void
hist_next(void *data)
{
if (current_command < num_commands)
if (current_command < num_commands-1)
Epplet_change_textbox(textbox, command_history[++current_command]);
return;
data = NULL;
}