1 Oct 2011 16:13
Re: vertical patch (prototype)
Peter John Hartman <peterjohnhartman <at> gmail.com>
2011-10-01 14:13:36 GMT
2011-10-01 14:13:36 GMT
Hi Rafa,
I had a free moment and I tore out the token code from dmenu tip and put it
in slmenu. Here is the patch (ignore a couple lines thta fix the clear
screen):
diff -r 7896c4e3bf21 slmenu.c
--- a/slmenu.c Thu Sep 29 12:45:34 2011 +0200
+++ b/slmenu.c Sat Oct 01 10:11:29 2011 -0400
<at> <at> -36,7 +36,7 <at> <at>
static void drawmenu(void);
static char *fstrstr(const char*, const char*);
static void insert(const char*, ssize_t);
-static void match(int);
+static void match(void);
static size_t nextrune(int);
static void readstdin(void);
static int run(void);
<at> <at> -60,10 +60,10 <at> <at>
void
appenditem(Item *item, Item **list, Item **last) {
- if(!*last)
+ if(*last)
+ (*last)->right = item;
+ else
*list = item;
- else
- (*last)->right = item;
item->left = *last;
(Continue reading)
RSS Feed