fix cursor height

This commit is contained in:
sewn 2024-08-01 01:30:23 +03:00
parent 60c2bfa3b6
commit 7a07b728c4
No known key found for this signature in database

3
mew.c
View file

@ -295,7 +295,8 @@ drawmenu(void)
curpos = TEXTW(text) - TEXTW(&text[cursor]); curpos = TEXTW(text) - TEXTW(&text[cursor]);
if ((curpos += lrpad / 2 - 1) < w) { if ((curpos += lrpad / 2 - 1) < w) {
drwl_setscheme(drw, colors[SchemeNorm]); drwl_setscheme(drw, colors[SchemeNorm]);
drwl_rect(drw, x + curpos, 2, 2, bh - 4, 1, 0); drwl_rect(drw, x + curpos, (bh - drw->font->height) / 2 + 1,
2, drw->font->height - 2, 1, 0);
} }
if (lines > 0) { if (lines > 0) {