[powerdebug,1/2] reset scrolling when selecting an item in the search list

Message ID 1308646200-31073-1-git-send-email-daniel.lezcano@linaro.org
State Accepted
Headers show

Commit Message

Daniel Lezcano June 21, 2011, 8:49 a.m.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 display.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

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: