Skip to content

Commit

Permalink
Arrow down to move to the end of prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mkchoi212 committed Jun 9, 2018
1 parent 335700b commit 0a38b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func PromptEditor(v *gocui.View, k gocui.Key, ch rune, mod gocui.Modifier) {
case gocui.KeyInsert:
v.Overwrite = !v.Overwrite
case gocui.KeyArrowDown:
v.MoveCursor(0, 1, false)
v.SetCursor(len(v.Buffer())-1, 0)
case gocui.KeyArrowUp:
v.MoveCursor(0, -1, false)
case gocui.KeyArrowLeft:
Expand Down

0 comments on commit 0a38b45

Please sign in to comment.