From patchwork Tue Jun 21 08:49:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 2113 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6F4F623F4F for ; Tue, 21 Jun 2011 08:50:33 +0000 (UTC) Received: from mail-vw0-f52.google.com (mail-vw0-f52.google.com [209.85.212.52]) by fiordland.canonical.com (Postfix) with ESMTP id 3D52EA1878C for ; Tue, 21 Jun 2011 08:50:33 +0000 (UTC) Received: by vws16 with SMTP id 16so4450267vws.11 for ; Tue, 21 Jun 2011 01:50:32 -0700 (PDT) Received: by 10.52.175.197 with SMTP id cc5mr4929427vdc.287.1308646232779; Tue, 21 Jun 2011 01:50:32 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.52.183.130 with SMTP id em2cs52935vdc; Tue, 21 Jun 2011 01:50:32 -0700 (PDT) Received: by 10.227.12.15 with SMTP id v15mr5969269wbv.77.1308646231827; Tue, 21 Jun 2011 01:50:31 -0700 (PDT) Received: from smtp.smtpout.orange.fr (smtp08.smtpout.orange.fr [80.12.242.130]) by mx.google.com with ESMTP id d17si11139511wbh.119.2011.06.21.01.50.30; Tue, 21 Jun 2011 01:50:30 -0700 (PDT) Received-SPF: neutral (google.com: 80.12.242.130 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=80.12.242.130; Authentication-Results: mx.google.com; spf=neutral (google.com: 80.12.242.130 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from monster.dhcp.lxc ([92.134.95.191]) by mwinf5d31 with ME id yYqV1g00B47kPVY03YqVnE; Tue, 21 Jun 2011 10:50:30 +0200 From: Daniel Lezcano To: linaro-dev@lists.linaro.org Subject: [powerdebug 1/2] reset scrolling when selecting an item in the search list Date: Tue, 21 Jun 2011 10:49:59 +0200 Message-Id: <1308646200-31073-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.1 Signed-off-by: Daniel Lezcano --- display.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/display.c b/display.c index 8f442c1..0cfbf94 100644 --- a/display.c +++ b/display.c @@ -472,6 +472,9 @@ static int display_find_keystroke(int fd, void *data) if (windata[current_win].ops->selectf()) return -1; + windata[current_win].cursor = 0; + windata[current_win].scrolling = 0; + return 0; default: