]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed a bug where search results that are off screen don't cause the view to shift
authorMichael D. Lowis <mike@mdlowis.com>
Mon, 24 Oct 2016 02:16:57 +0000 (22:16 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Mon, 24 Oct 2016 02:16:57 +0000 (22:16 -0400)
mouse.c

diff --git a/mouse.c b/mouse.c
index 37ac1616523758407473670135b36f105afecfdb..decd576094569f85e9663b0cfde646ee25386ccd 100644 (file)
--- a/mouse.c
+++ b/mouse.c
@@ -53,9 +53,8 @@ void search(MouseEvent* mevnt) {
         select(mevnt);
     }
     buf_find(&Buffer, &DotBeg, &DotEnd);
-
     unsigned x, y;
-    screen_getcoords(&Buffer, DotEnd, &x, &y);
+    screen_update(&Buffer, DotEnd, &x, &y);
     extern void move_pointer(unsigned x, unsigned y);
     move_pointer(x, y);
 }