diff options
Diffstat (limited to 'dmenu.c')
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -144,7 +144,7 @@ drawmenu(void) | |||
144 | drw_setscheme(drw, scheme[SchemeNorm]); | 144 | drw_setscheme(drw, scheme[SchemeNorm]); |
145 | drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); | 145 | drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); |
146 | 146 | ||
147 | drw_font_getexts(drw->fonts, text, cursor, &curpos, NULL); | 147 | curpos = TEXTW(text) - TEXTW(&text[cursor]); |
148 | if ((curpos += lrpad / 2 - 1) < w) { | 148 | if ((curpos += lrpad / 2 - 1) < w) { |
149 | drw_setscheme(drw, scheme[SchemeNorm]); | 149 | drw_setscheme(drw, scheme[SchemeNorm]); |
150 | drw_rect(drw, x + curpos, 2, 2, bh - 4, 1, 0); | 150 | drw_rect(drw, x + curpos, 2, 2, bh - 4, 1, 0); |