浏览代码

removed the i = textnw... as remarked by Martin Hurton

master
Anselm R Garbe 16 年前
父节点
当前提交
b95e61c9b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      dmenu.c

+ 1
- 1
dmenu.c 查看文件

@@ -226,7 +226,7 @@ drawtext(const char *text, unsigned long col[ColLast]) {
y = dc.y + (dc.h / 2) - (h / 2) + dc.font.ascent;
x = dc.x + (h / 2);
/* shorten text if necessary */
for(len = MIN(olen, sizeof buf); len && (i = textnw(buf, len)) > dc.w - h; len--);
for(len = MIN(olen, sizeof buf); len && textnw(buf, len) > dc.w - h; len--);
if(!len)
return;
memcpy(buf, text, len);


正在加载...
取消
保存