Skip to content

Commit

Permalink
Fix cursor moving down when selection exist. Solves (#3087) (#3091)
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 authored Apr 25, 2024
1 parent 24406a5 commit 1479438
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 @@ -209,7 +209,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 1479438

Please sign in to comment.