changeset 24878:6163f5ead8a5

Fix input.conf parse bug when comment follows key binding in the same line.
author ulion
date Wed, 31 Oct 2007 01:23:33 +0000
parents 9948f87944eb
children 3b6d25b677b4
files input/input.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: