diff options
author | jasper <jasper> | 2007-10-02 18:01:45 +0000 |
---|---|---|
committer | jasper <jasper> | 2007-10-02 18:01:45 +0000 |
commit | 56994282f007b8b5175f08eb3dfab40713f7e9b4 (patch) | |
tree | bcb7ceafdc93d19b0d72fb59edb09d4728ce5a1f /search.c | |
parent | 05848673965c20c4a0be4d3d0b024b75ba234e51 (diff) | |
download | cwm-56994282f007b8b5175f08eb3dfab40713f7e9b4.tar.gz cwm-56994282f007b8b5175f08eb3dfab40713f7e9b4.tar.xz cwm-56994282f007b8b5175f08eb3dfab40713f7e9b4.zip |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |