From b37a1a1745e0b17dfe51017d97e4ee4506cd25b3 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Thu, 15 Jun 2017 13:25:39 -0400 Subject: [PATCH] Added logic to peg the cursor to the line end when end key is pressed --- lib/view.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/view.c b/lib/view.c index cd1c978..72a86ed 100644 --- a/lib/view.c +++ b/lib/view.c @@ -256,6 +256,7 @@ void view_bol(View* view, bool extsel) { void view_eol(View* view, bool extsel) { move_to(view, extsel, buf_eol(&(view->buffer), view->selection.end)); + view->selection.col = -1; // Peg cursor to line end } void view_bof(View* view, bool extsel) { -- 2.49.0