From: Michael D. Lowis Date: Mon, 24 Oct 2016 02:16:57 +0000 (-0400) Subject: fixed a bug where search results that are off screen don't cause the view to shift X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c4c6b1c3d4c322d33907e80243682950df29cfc0;p=projs%2Ftide.git fixed a bug where search results that are off screen don't cause the view to shift --- diff --git a/mouse.c b/mouse.c index 37ac161..decd576 100644 --- 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); }