Browse Source

fix for issue #203 (#204)

attilaz 6 years ago
parent
commit
702b676ec2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/commandline.cpp

+ 1 - 1
src/commandline.cpp

@@ -39,7 +39,7 @@ namespace bx
 			switch (state)
 			switch (state)
 			{
 			{
 				case SkipWhitespace:
 				case SkipWhitespace:
-					for (; isSpace(*curr); ++curr) {}; // skip whitespace
+					for (; isSpace(*curr) && *curr!=_term; ++curr) {}; // skip whitespace
 					state = SetTerm;
 					state = SetTerm;
 					break;
 					break;