summaryrefslogtreecommitdiffstats
path: root/src/base/cmd/cmdHist.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-10-02 21:41:24 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-10-02 21:41:24 -0700
commit6c1c45b90f689a548c2c35b5d5913cee76e7cbca (patch)
tree3247213ce167d0dfe33b92d2559f6a8eb6c2ad46 /src/base/cmd/cmdHist.c
parentaa705a9af63b3c3859345311693eb50fbf751cb7 (diff)
downloadabc-6c1c45b90f689a548c2c35b5d5913cee76e7cbca.tar.gz
abc-6c1c45b90f689a548c2c35b5d5913cee76e7cbca.tar.bz2
abc-6c1c45b90f689a548c2c35b5d5913cee76e7cbca.zip
Added command 'starter' to call ABC concurrently.
Diffstat (limited to 'src/base/cmd/cmdHist.c')
-rw-r--r--src/base/cmd/cmdHist.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/cmd/cmdHist.c b/src/base/cmd/cmdHist.c
index ed1d2efa..a9e2d18d 100644
--- a/src/base/cmd/cmdHist.c
+++ b/src/base/cmd/cmdHist.c
@@ -49,9 +49,11 @@ void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command )
{
int nLastLooked = 10; // do not add history if the same entry appears among the last entries
int nLastSaved = 500; // when saving a file, save no more than this number of last entries
-
char Buffer[ABC_MAX_STR];
- int Len = strlen(command);
+ int Len;
+ if ( p->fBatchMode )
+ return;
+ Len = strlen(command);
strcpy( Buffer, command );
if ( Buffer[Len-1] == '\n' )
Buffer[Len-1] = 0;