minor command parsing fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@36841 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2013-07-06 05:03:26 +00:00
parent 0666e60141
commit a23d16e9e0
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2013-07-06 Richard Frith-Macdonald <rfm@gnu.org>
* EcConsole.m: Strip spaces from command line to avoid a space
at end of line causing the line terminator to be treated as an
argument.
2013-04-07 Richard Frith-Macdonald <rfm@gnu.org>
* EcControl.m:

View file

@ -208,6 +208,7 @@ static BOOL commandIsRepeat (NSString *string)
[self cmdQuit: 0];
}
_line = [_line stringByTrimmingSpaces]; // Remove trailing newline
if ([_line length] == 0)
{
return;