|
|
@@ -324,6 +324,7 @@ func (c *Console) Welcome() {
|
|
|
sort.Strings(modules)
|
|
|
message += " modules: " + strings.Join(modules, " ") + "\n"
|
|
|
}
|
|
|
+ message += "\nTo exit, press ctrl-d"
|
|
|
fmt.Fprintln(c.printer, message)
|
|
|
}
|
|
|
|
|
|
@@ -372,7 +373,7 @@ func (c *Console) Interactive() {
|
|
|
return
|
|
|
|
|
|
case err := <-inputErr:
|
|
|
- if err == liner.ErrPromptAborted && indents > 0 {
|
|
|
+ if err == liner.ErrPromptAborted {
|
|
|
// When prompting for multi-line input, the first Ctrl-C resets
|
|
|
// the multi-line state.
|
|
|
prompt, indents, input = c.prompt, 0, ""
|