From: Michael D. Lowis Date: Thu, 27 Sep 2018 13:12:52 +0000 (-0400) Subject: add column tracking when cursor moved by mouse click X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=d926772811518b40ef24b8f1b54afdb0c626a1ed;p=projs%2Ftide.git add column tracking when cursor moved by mouse click --- diff --git a/lib/view.c b/lib/view.c index c2c3e10..9fcb9c8 100644 --- a/lib/view.c +++ b/lib/view.c @@ -217,6 +217,7 @@ void view_setcursor(View* view, size_t row, size_t col, bool extsel) { getsel(view)->end = getoffset(view, row, col); if (!extsel) getsel(view)->beg = getsel(view)->end; + buf_getcol(BUF); } void view_selword(View* view, size_t row, size_t col) {