aboutsummaryrefslogtreecommitdiff
path: root/core.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-01-24 02:08:57 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-01-24 02:08:57 +0100
commit3438dbe7a4b19c6e386d68a7776b03ec1db4205c (patch)
treeefb5eeb8348e4f827c93348975617ce7503a6528 /core.go
parent211e7dfae79cf13b2302e67e1b8266ca46114dd3 (diff)
...
Diffstat (limited to 'core.go')
-rw-r--r--core.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core.go b/core.go
index e66d3f9..21bdf11 100644
--- a/core.go
+++ b/core.go
@@ -28,7 +28,7 @@ type Core struct {
tty Console // console i/o
}
-// New core
+// New core with console i/o
func New(con Console) *Core {
return &Core{tty: con}
}
@@ -94,7 +94,7 @@ func (c *Core) Run() {
for {
ins := c.Decode()
err := c.Eval(ins)
- if err != nil {
+ if err == errStop {
return
}
}