Compare commits
2 Commits
db976e0936
...
amused
Author | SHA1 | Date | |
---|---|---|---|
33da96a7a7 | |||
3397e3c4a9 |
@ -17,7 +17,7 @@ static const char *colors[SchemeLast][2] = {
|
|||||||
[SchemeOut] = { "#000000", "#00ffff" },
|
[SchemeOut] = { "#000000", "#00ffff" },
|
||||||
};
|
};
|
||||||
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
||||||
static unsigned int lines = 0;
|
static unsigned int lines = 6;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Characters not considered part of a word while deleting words
|
* Characters not considered part of a word while deleting words
|
||||||
|
2
dmenu.c
2
dmenu.c
@ -179,7 +179,7 @@ drawmenu(void)
|
|||||||
if (lines > 0) {
|
if (lines > 0) {
|
||||||
/* draw vertical list */
|
/* draw vertical list */
|
||||||
for (item = curr; item != next; item = item->right)
|
for (item = curr; item != next; item = item->right)
|
||||||
drawitem(item, x - promptw, y += bh, mw);
|
drawitem(item, x - promptw, y += bh, mw - x);
|
||||||
} else if (matches) {
|
} else if (matches) {
|
||||||
/* draw horizontal list */
|
/* draw horizontal list */
|
||||||
x += inputw;
|
x += inputw;
|
||||||
|
Reference in New Issue
Block a user