From 56994282f007b8b5175f08eb3dfab40713f7e9b4 Mon Sep 17 00:00:00 2001 From: jasper Date: Tue, 2 Oct 2007 18:01:45 +0000 Subject: When cycling, only the end of the window names will be printed if the name is too long. so show the beginning instead. from Pierre Riteau "looks correct" matthieu@ --- search.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'search.c') diff --git a/search.c b/search.c index 9a2500d..bccedd3 100644 --- a/search.c +++ b/search.c @@ -239,6 +239,11 @@ search_start(struct menu_q *menuq, } if (y + dy >= ymax) { y = ymax - dy; + /* If the menu is too high, never hide the + * top of the menu. + */ + if (y < 0) + y = 0; warp = 1; } -- cgit 1.4.1