Commit fba0552f by Alan Mishchenko

Added recording history of used commands into file 'abc.history' (Windows only).

parent bffbd05a
......@@ -67,10 +67,15 @@ void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command )
if ( !strcmp(pStr, Buffer) )
break;
if ( i == Vec_PtrSize(p->aHistory) )
{
{ // add new entry
Vec_PtrPush( p->aHistory, Extra_UtilStrsav(Buffer) );
Cmd_HistoryWrite( p, nLastSaved );
}
else
{ // put at the end
Vec_PtrRemove( p->aHistory, pStr );
Vec_PtrPush( p->aHistory, pStr );
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment