Skip to content

Commit

Permalink
Fix cursor moving down when selection exist. Solves (zyedidia#3087)
Browse files Browse the repository at this point in the history
Previously `CursorDown` function called `Deselect` with a wrong
argument which lead to the situation when cursor was moved to the
start instead of the end of the selection

Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
  • Loading branch information
dustdfg committed Dec 13, 2023
1 parent 2d82362 commit 12b9e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/action/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (h *BufPane) CursorUp() bool {

// CursorDown moves the cursor down
func (h *BufPane) CursorDown() bool {
h.Cursor.Deselect(true)
h.Cursor.Deselect(false)
h.MoveCursorDown(1)
h.Relocate()
return true
Expand Down

0 comments on commit 12b9e88

Please sign in to comment.