ソースを参照

underline match

master
Connor Lane Smith 14年前
コミット
7f36736d11
1個のファイルの変更5行の追加0行の削除
  1. +5
    -0
      dmenu.c

+ 5
- 0
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


読み込み中…
キャンセル
保存