REPL: don't fail on a callable reference
There should probably be a special kind of property, but at least it won't throw an exception for now
This commit is contained in:
@@ -125,7 +125,7 @@ public class ReplFromTerminal {
|
||||
return WhatNextAfterOneLine.QUIT;
|
||||
}
|
||||
|
||||
if (line.startsWith(":")) {
|
||||
if (line.startsWith(":") && (line.length() == 1 || line.charAt(1) != ':')) {
|
||||
boolean notQuit = oneCommand(line.substring(1));
|
||||
return notQuit ? WhatNextAfterOneLine.READ_LINE : WhatNextAfterOneLine.QUIT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user