Dear suckless list,
attached is a trivial 1 line patch that aligns the text in vertical mode
on the left. This makes the output nicer on long prompts.
Before:
http://www.brechpunkt.de/paste/v9aYZ3DE.png
After:
http://www.brechpunkt.de/paste/QOruE5yA.png
bye,
Christoph
diff -r 23bd778df432 dmenu.c
--- a/dmenu.c Fri Aug 20 19:57:13 2010 +0100
+++ b/dmenu.c Fri Sep 03 21:25:06 2010 +0200
@@ -109,6 +109,7 @@
dc_drawtext(dc, text, normcol);
if((curpos = dc_textnw(dc, text, cursor) + dc->h/2 - 2) < dc->w)
dc_drawrect(dc, curpos, 2, 1, dc->h - 4, True, FG(dc, normcol));
+ dc->x = 0;
if(lines > 0) {
dc->w = mw - dc->x;