changeset 4826:a0e8eac85aca

Also use tab as cmd arg sepparator
author albeu
date Sat, 23 Feb 2002 22:43:25 +0000
parents 41d2da3bd082
children 8570abfc6feb
files input/input.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Sat Feb 23 21:22:55 2002 +0000
+++ b/input/input.c	Sat Feb 23 22:43:25 2002 +0000
@@ -363,7 +363,7 @@
   for(i=0; ptr && i < MP_CMD_MAX_ARGS; i++) {
     ptr = strchr(ptr,' ');
     if(!ptr) break;
-    while(ptr[0] == ' ') ptr++;
+    while(ptr[0] == ' ' || ptr[0] == '\t') ptr++;
     if(ptr[0] == '\0') break;	
     switch(cmd_def->args[i].type) {
     case MP_CMD_ARG_INT:
@@ -960,7 +960,7 @@
 	cmd_binds = binds;
       return 1;
     }
-    
+
     iter = buffer;
 
     if(comments) {