diff options
Diffstat (limited to 'externals/grill/flext/source')
-rwxr-xr-x | externals/grill/flext/source/fllib.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp index 80a8aae4..3b196f55 100755 --- a/externals/grill/flext/source/fllib.cpp +++ b/externals/grill/flext/source/fllib.cpp @@ -57,8 +57,12 @@ static const char *extract(const char *name,int ix = 0) while(*t == ALIASSLASH && t > tmp) --t; *t = 0; #endif - if(ix < 0) - return del+1; + if(ix < 0) { + // eat white space in front of help definition + ++del; + while(*del && isspace(*del)) ++del; + return del; + } strncpy(tmp,name,del-name); tmp[del-name] = 0; |