diff --git a/edit/editor.go b/edit/editor.go index 0ea32d98..e2cc39c2 100644 --- a/edit/editor.go +++ b/edit/editor.go @@ -93,7 +93,7 @@ func (ed *Editor) ReadLine(prompt string) (lr LineRead) { } switch k { - case PlainKey('\n'): + case CtrlKey('J'): tip = "" err := ed.refresh(prompt, line, tip) if err != nil {