fixed no-input invisible text bug 309d071d
Connor Lane Smith · 2010-06-30 10:45 1 file(s) · +2 −2
dmenu.c +2 −2
182 182
	drawtext(&dc, *text ? text : NULL, normcol, False);
183 183
	if(lines > 0)
184 184
		drawmenuv();
185 -
	else
185 +
	else if(curr)
186 186
		drawmenuh();
187 187
	XCopyArea(dpy, dc.drawable, win, dc.gc, 0, 0, mw, mh, 0, 0);
188 188
	XFlush(dpy);
194 194
195 195
	dc.x += cmdw;
196 196
	dc.w = spaceitem;
197 -
	drawtext(&dc, curr && curr->left ? "<" : NULL, normcol, False);
197 +
	drawtext(&dc, curr->left ? "<" : NULL, normcol, False);
198 198
	dc.x += dc.w;
199 199
	for(i = curr; i != next; i = i->right) {
200 200
		dc.w = MIN(textw(&dc, i->text), mw / 3);