[wiki] [sites] Update fuzzymatch for dmenu-4.5 as well || FRIGN

From: <git_AT_suckless.org>
Date: Tue, 20 Oct 2015 22:04:26 +0200

commit 8c993d012a5220716ea9fca1ddfb8f2185efa26f
Author: FRIGN <dev_AT_frign.de>
Date: Tue Oct 20 22:03:56 2015 +0200

    Update fuzzymatch for dmenu-4.5 as well

diff --git a/tools.suckless.org/dmenu/patches/dmenu-4.5-fuzzymatch.diff b/tools.suckless.org/dmenu/patches/dmenu-4.5-fuzzymatch.diff
index ad2eed3..9961354 100644
--- a/tools.suckless.org/dmenu/patches/dmenu-4.5-fuzzymatch.diff
+++ b/tools.suckless.org/dmenu/patches/dmenu-4.5-fuzzymatch.diff
_AT_@ -1,12 +1,8 @@
-Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
-URL: no url in suckless wiki yet
-Add add fuzzy matching to dmenu
-
-Index: dmenu-patches/dmenu/dmenu.c
-===================================================================
---- dmenu-patches.orig/dmenu/dmenu.c
-+++ dmenu-patches/dmenu/dmenu.c
-_AT_@ -22,12 +22,14 @@ typedef struct Item Item;
+diff --git a/dmenu.c b/dmenu.c
+index 4ea95f8..19c5cb6 100644
+--- a/dmenu.c
++++ b/dmenu.c
+_AT_@ -22,6 +22,7 @@ typedef struct Item Item;
  struct Item {
          char *text;
          Item *left, *right;
_AT_@ -14,54 +10,10 @@ Index: dmenu-patches/dmenu/dmenu.c
  };
  
  static void appenditem(Item *item, Item **list, Item **last);
- static void calcoffsets(void);
- static char *cistrstr(const char *s, const char *sub);
- static void drawmenu(void);
-+static void fuzzymatch(void);
- static void grabkeyboard(void);
- static void insert(const char *str, ssize_t n);
- static void keypress(XKeyEvent *ev);
-_AT_@ -230,7 +232,7 @@ insert(const char *str, ssize_t n) {
- if(n > 0)
- memcpy(&text[cursor], str, n);
- cursor += n;
-- match();
-+ fuzzymatch();
+_AT_@ -221,6 +222,86 @@ grabkeyboard(void) {
+ eprintf("cannot grab keyboard
");
  }
  
- void
-_AT_@ -260,7 +262,7 @@ keypress(XKeyEvent *ev) {
-
- case XK_k: /* delete right */
- text[cursor] = '
Received on Tue Oct 20 2015 - 22:04:26 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 20 2015 - 22:12:11 CEST