From 12b9e88291346f078b2aaf7e086bb630f1ac42ce Mon Sep 17 00:00:00 2001 From: "Yevhen Babiichuk (DustDFG)" Date: Wed, 13 Dec 2023 21:34:12 +0200 Subject: [PATCH] Fix cursor moving down when selection exist. Solves (#3087) 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 d45f5b2f0..c4976af91 100644 --- a/internal/action/actions.go +++ b/internal/action/actions.go @@ -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