diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2018-01-24 02:08:57 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2018-01-24 02:08:57 +0100 |
commit | 3438dbe7a4b19c6e386d68a7776b03ec1db4205c (patch) | |
tree | efb5eeb8348e4f827c93348975617ce7503a6528 /core.go | |
parent | 211e7dfae79cf13b2302e67e1b8266ca46114dd3 (diff) |
...
Diffstat (limited to 'core.go')
-rw-r--r-- | core.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } } |