From: Michael D. Lowis Date: Wed, 4 Apr 2018 17:19:53 +0000 (-0400) Subject: removed use of selection arg from view code X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=dc18c3fcc38141e8174f16dd7fea20d6a9b5a90e;p=projs%2Ftide.git removed use of selection arg from view code --- diff --git a/lib/view.c b/lib/view.c index 12bfef3..4f87f30 100644 --- a/lib/view.c +++ b/lib/view.c @@ -291,11 +291,11 @@ static void move_selection(View* view, bool extsel, int move, movefn_t bything) if (buf_selsz(&(view->buffer), NULL) && !extsel) { buf_selclr(&(view->buffer), NULL, move); } else { - Sel* sel = getsel(view); - sel->end = bything(&(view->buffer), sel->end, move); + getsel(view)->end = bything(&(view->buffer), getsel(view)->end, move); if (bything == buf_byline) buf_setcol(&(view->buffer), NULL); - if (!extsel) buf_selclr(&(view->buffer), sel, move); + if (!extsel) + buf_selclr(&(view->buffer), NULL, move); } /* only update column if not moving vertically */ if (bything != buf_byline)