# HG changeset patch # User ulion # Date 1193793813 0 # Node ID 6163f5ead8a5bc9e12d1c13b4965fa1e9cac4112 # Parent 9948f87944ebc9683daeda934d612d8eb3ca67cf Fix input.conf parse bug when comment follows key binding in the same line. diff -r 9948f87944eb -r 6163f5ead8a5 input/input.c --- a/input/input.c Tue Oct 30 23:13:51 2007 +0000 +++ b/input/input.c Wed Oct 31 01:23:33 2007 +0000 @@ -757,7 +757,7 @@ while(ptr[0] != ' ' && ptr[0] != '\t' && ptr[0] != '\0') ptr++; if(ptr[0] == '\0') break; while(ptr[0] == ' ' || ptr[0] == '\t') ptr++; - if(ptr[0] == '\0') break; + if(ptr[0] == '\0' || ptr[0] == '#') break; cmd->args[i].type = cmd_def->args[i].type; switch(cmd_def->args[i].type) { case MP_CMD_ARG_INT: