projects
/
suckless
/
dmenu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
115c01b
)
underline match
author
Connor Lane Smith
<cls@lubutu.com>
Fri, 30 Jul 2010 09:26:12 +0000
(10:26 +0100)
committer
Connor Lane Smith
<cls@lubutu.com>
Fri, 30 Jul 2010 09:26:12 +0000
(10:26 +0100)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index 076cffef4b082a093859876996fb5adce398d04c..9386e06fdc1c3a3c3e372a68791e585db763c98a 100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-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