Commit: 8aa7507ddf44fa47cf36e80cbc6fac48a64c631d
Parent: f815b1cfffb4cc04d2c52679c48b59eb431505bd
Author: Quentin Rameau
Date: Sun, 22 Apr 2018 14:18:34 +0200
Fix cursor drawn position with wide glyphs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
@@ -250,7 +250,7 @@ drawwin(void) {
censort[i+1] = '\n';
leftinput = mw - x - pbw;
drw_text(drw, x, 0, leftinput, bh, lrpad / 2, censort, 0);
- drw_font_getexts(drw->fonts, censort, cursor * asterlen, &curpos, NULL);
+ curpos = TEXTW(censort) - TEXTW(&censort[cursor]);
if ((curpos += lrpad / 2 - 1) < leftinput) {
drw_setscheme(drw, scheme[SchemeNormal]);