Cursor improvements

This commit is contained in:
Zachary Yedidia
2018-08-27 17:55:28 -04:00
parent 8cf9aa216a
commit 64ce6eebd2
9 changed files with 64 additions and 15 deletions

View File

@@ -30,21 +30,29 @@ func (a *BufActionHandler) Center() bool {
// CursorUp moves the cursor up
func (a *BufActionHandler) CursorUp() bool {
a.Cursor.Deselect(true)
a.Cursor.Up()
return true
}
// CursorDown moves the cursor down
func (a *BufActionHandler) CursorDown() bool {
a.Cursor.Deselect(true)
a.Cursor.Down()
return true
}
// CursorLeft moves the cursor left
func (a *BufActionHandler) CursorLeft() bool {
a.Cursor.Deselect(true)
a.Cursor.Left()
return true
}
// CursorRight moves the cursor right
func (a *BufActionHandler) CursorRight() bool {
a.Cursor.Deselect(true)
a.Cursor.Right()
return true
}