underline match

This commit is contained in:
Connor Lane Smith 2010-07-30 10:26:12 +01:00
parent 115c01b74e
commit 7f36736d11
1 changed files with 5 additions and 0 deletions

View File

@ -158,8 +158,13 @@ drawbar(void) {
void
drawitem(const char *s, unsigned long col[ColLast]) {
const char *p;
unsigned int w = textnw(&dc, text, strlen(text));
drawbox(&dc, col);
drawtext(&dc, s, col);
for(p = fstrstr(s, text); *text && (p = fstrstr(p, text)); p++)
drawline(&dc, textnw(&dc, s, p-s) + dc.h/2 - 1, dc.h-2, w, 1, col);
}
void