- dc.x += promptw;
- dc.w = mw - promptw;
- /* print command */
- drawtext(text[0] ? text : NULL, dc.norm);
- if(curr) {
- dc.x = 0;
- dc.w = mw;
- dc.y += dc.font.height + 2;
- /* determine maximum items */
- for(i = curr; i != next; i=i->right) {
- drawtext(i->text, (sel == i) ? dc.sel : dc.norm);
- dc.y += dc.font.height + 2;
- }
- drawtext(NULL, dc.norm);
+ dc.w = spaceitem;
+ dc.x = mw - dc.w;
+ drawtext(next ? ">" : NULL, dc.norm);
+}
+
+void
+drawmenuv(void) {
+ Item *i;
+
+ dc.w = mw - dc.x;
+ dc.h = dc.font.height + 2;
+ dc.y = dc.h;
+ for(i = curr; i != next; i=i->right) {
+ drawtext(i->text, (sel == i) ? dc.sel : dc.norm);
+ dc.y += dc.h;