1
0
Fork 0

Merge branch 'svn/trunk'

This commit is contained in:
Patryk Obara 2019-10-01 18:11:50 +02:00
commit a4a6bed5c1
8 changed files with 13 additions and 12 deletions

View file

@ -134,7 +134,10 @@ AutoexecObject::~AutoexecObject(){
if ((strncasecmp(buf2,"set ",4) == 0) && (strlen(buf2) > 4)){
char* after_set = buf2 + 4;//move to variable that is being set
char* test = strpbrk(after_set,"=");
if (!test) continue;
if (!test) {
delete [] buf2;
continue;
}
*test = 0;
stringset = true;
//If the shell is running/exists update the environment

View file

@ -368,7 +368,7 @@ void DOS_Shell::InputCommand(char * line) {
// remove current command from history if it's there
if (current_hist) {
current_hist=false;
// current_hist=false;
l_history.pop_front();
}