edit: Fix reading of Enter key

This commit is contained in:
Cheer Xiao 2013-09-23 16:32:23 +08:00
parent 13189cf58d
commit 368e67f85f

View File

@ -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 {