From: Michael D. Lowis Date: Thu, 15 Jun 2017 17:25:39 +0000 (-0400) Subject: Added logic to peg the cursor to the line end when end key is pressed X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=b37a1a1745e0b17dfe51017d97e4ee4506cd25b3;p=projs%2Ftide.git Added logic to peg the cursor to the line end when end key is pressed --- 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) {