summaryrefslogtreecommitdiffstats
path: root/dmenu.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dmenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmenu.c b/dmenu.c
index c353c60..9315181 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -182,7 +182,7 @@ drawmenu(void) {
drawtext(&dc, *text ? text : NULL, normcol, False);
if(lines > 0)
drawmenuv();
- else
+ else if(curr)
drawmenuh();
XCopyArea(dpy, dc.drawable, win, dc.gc, 0, 0, mw, mh, 0, 0);
XFlush(dpy);
@@ -194,7 +194,7 @@ drawmenuh(void) {
dc.x += cmdw;
dc.w = spaceitem;
- drawtext(&dc, curr && curr->left ? "<" : NULL, normcol, False);
+ drawtext(&dc, curr->left ? "<" : NULL, normcol, False);
dc.x += dc.w;
for(i = curr; i != next; i = i->right) {
dc.w = MIN(textw(&dc, i->text), mw / 3);
r.com/avatar/ab32d65919a7bb8c3780c88ca87a3dab?s=13&d=retro' width='13' height='13' alt='Gravatar' /> Andrew D. France 4-185/+0 2025-07-23make was improperly being called inside the container on a project that is mi...Gravatar Andrew D. France 2-5/+9 2025-07-23Attempt to patch CI pipeline: Dockerfile will now be selfcontained, and thus,...Gravatar Andrew D. France 2-32/+43 2025-07-23CRITICAL ISSUE: Deleting lib/ files has introduced the issue of actually auto...Gravatar Andrew D. France 1-38/+25 2025-07-23CRITICAL FOR TESTING: This copies the entire Jenkins workspace (including the...Gravatar Andrew D. France 2-9/+7