parent
54cb8e81fc
commit
f1e7e6151e
10
ChangeLog
10
ChangeLog
|
@ -455,3 +455,13 @@ E-Memwatch.c
|
|||
Using atexit(Epplet_cleanup) prevents all those "mulitple spawning on
|
||||
startup problems" people get.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
Fri Nov 12 13:02:56 EST 1999
|
||||
(StriderZ)
|
||||
|
||||
Changed some stuff in E-Exec (thanks Ian), to make it safer and fun for all ages. Also hopefully
|
||||
fixed a potential bug in Epplet_change_config (same one Epplet_modify_config used to have).
|
||||
|
||||
|
||||
|
|
|
@ -1480,7 +1480,9 @@ Epplet_change_textbox(Epplet_gadget eg, char *new_contents)
|
|||
len = strlen(new_contents);
|
||||
g = (GadTextBox *) eg;
|
||||
|
||||
if(g->contents != NULL)
|
||||
if(g->contents == new_contents)
|
||||
return;
|
||||
else if(g->contents != NULL)
|
||||
free(g->contents);
|
||||
|
||||
g->contents = Estrdup(new_contents);
|
||||
|
|
|
@ -37,7 +37,7 @@ run_contents(void *data)
|
|||
for(i=0; i < MAX_HIST_LEN; i++)
|
||||
command_history[i] = command_history[i+1];
|
||||
|
||||
command_history[MAX_HIST_LEN] = strdup(command);
|
||||
command_history[MAX_HIST_LEN-1] = strdup(command);
|
||||
}
|
||||
|
||||
current_command = num_commands;
|
||||
|
@ -63,6 +63,11 @@ hist_next(void *data)
|
|||
{
|
||||
if (current_command < num_commands-1)
|
||||
Epplet_change_textbox(textbox, command_history[++current_command]);
|
||||
else if (current_command == num_commands-1)
|
||||
{
|
||||
current_command++;
|
||||
Epplet_change_textbox(textbox, "");
|
||||
}
|
||||
|
||||
return;
|
||||
data = NULL;
|
||||
|
|
Loading…
Reference in New Issue