look at the Changelog...dammit

SVN revision: 1271
This commit is contained in:
Richard Barnes 1999-11-12 17:47:01 +00:00
parent 54cb8e81fc
commit f1e7e6151e
3 changed files with 19 additions and 2 deletions

View File

@ -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).

View File

@ -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);

View File

@ -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;