mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 01:47:51 +08:00
edit: Fix reading of Enter key
This commit is contained in:
parent
13189cf58d
commit
368e67f85f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user