From c4c6b1c3d4c322d33907e80243682950df29cfc0 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Sun, 23 Oct 2016 22:16:57 -0400 Subject: [PATCH] fixed a bug where search results that are off screen don't cause the view to shift --- mouse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.49.0