From 368e67f85fb3b4d262a4539d7a1e55c781541c1e Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Mon, 23 Sep 2013 16:32:23 +0800 Subject: [PATCH] edit: Fix reading of Enter key --- edit/editor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {