From 147943837db6f4f786aa0a15924b655285f57dca Mon Sep 17 00:00:00 2001 From: "Yevhen Babiichuk (DustDFG)" Date: Thu, 25 Apr 2024 03:27:41 +0300 Subject: [PATCH] Fix cursor moving down when selection exist. Solves (#3087) (#3091) 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) --- internal/action/actions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/action/actions.go b/internal/action/actions.go index bccf72ae..a8022337 100644 --- a/internal/action/actions.go +++ b/internal/action/actions.go @@ -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