aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorjasper2007-10-02 18:01:45 +0000
committerjasper2007-10-02 18:01:45 +0000
commit75c4bd0d809c8e1feb73f445905bcfe849c837ad (patch)
tree31a8cceed8123a90a6943b6ca7954ebb93c64082 /search.c
parent677aecb9cfd26dd078a0a58d4babc8945a39b55f (diff)
downloadcwm-75c4bd0d809c8e1feb73f445905bcfe849c837ad.tar.gz
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 <pierre.riteau at free.fr> "looks correct" matthieu@
Diffstat (limited to 'search.c')
-rw-r--r--search.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/search.c b/search.c
index 075c1d2..5a99a2e 100644
--- a/search.c
+++ b/search.c
@@ -4,7 +4,7 @@
* Copyright (c) 2004 Marius Aamodt Eriksen <marius@monkey.org>
* All rights reserved.
*
- * $Id: search.c,v 1.3 2007/06/26 19:34:26 niallo Exp $
+ * $Id: search.c,v 1.4 2007/10/02 18:01:45 jasper Exp $
*/
#include "headers.h"
@@ -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;
}