diff options
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; } |