all repos — dmenu @ 0f76dd2fb89748eb5460adbc87c4e98bcce09763

my build of dmenu

Fix cursor drawn position with wide glyphs
Quentin Rameau quinq@fifth.space
Sun, 22 Apr 2018 14:18:34 +0200
commit

0f76dd2fb89748eb5460adbc87c4e98bcce09763

parent

0b5748021877b2f214474b034d8bf0122ee88ed2

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M dmenu.cdmenu.c

@@ -144,7 +144,7 @@ w = (lines > 0 || !matches) ? mw - x : inputw;

drw_setscheme(drw, scheme[SchemeNorm]); drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); - drw_font_getexts(drw->fonts, text, cursor, &curpos, NULL); + curpos = TEXTW(text) - TEXTW(&text[cursor]); if ((curpos += lrpad / 2 - 1) < w) { drw_setscheme(drw, scheme[SchemeNorm]); drw_rect(drw, x + curpos, 2, 2, bh - 4, 1, 0);