Skip to content

Commit 1479438

Browse files
authored
Fix cursor moving down when selection exist. Solves (zyedidia#3087) (zyedidia#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) <[email protected]>
1 parent 24406a5 commit 1479438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/action/actions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (h *BufPane) CursorUp() bool {
209209

210210
// CursorDown moves the cursor down
211211
func (h *BufPane) CursorDown() bool {
212-
h.Cursor.Deselect(true)
212+
h.Cursor.Deselect(false)
213213
h.MoveCursorDown(1)
214214
h.Relocate()
215215
return true

0 commit comments

Comments
 (0)