Skip to content

Commit

Permalink
Fix enter input behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mkchoi212 committed Dec 29, 2017
1 parent b782e6c commit 6d16fc2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ func promptEditor(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) {
v.EditDelete(false)
case key == gocui.KeyInsert:
v.Overwrite = !v.Overwrite
case key == gocui.KeyEnter:
v.Clear()
v.SetCursor(0, 0)
case key == gocui.KeyArrowDown:
v.MoveCursor(0, 1, false)
case key == gocui.KeyArrowUp:
Expand Down

0 comments on commit 6d16fc2

Please sign in to comment.