]> git.mdlowis.com Git - projs/tide.git/commitdiff
add column tracking when cursor moved by mouse click
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 27 Sep 2018 13:12:52 +0000 (09:12 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 27 Sep 2018 13:12:52 +0000 (09:12 -0400)
lib/view.c

index c2c3e102ece6f7e831c52393b55273f51d3aa9ab..9fcb9c8518f52e338dc5ed607c062c6a6e310447 100644 (file)
@@ -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) {