[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Sat, 20 Nov 2010 18:56:14 +0000 (UTC)

changeset: 643:e2afba1bfbe5
tag: tip
user: Rob Pilling <my name at gmail dot com>
date: Sat Nov 20 18:55:59 2010 +0000
files: tools.suckless.org/dmenu/patches/dmenu-tip-incremental.diff
description:
Updated incremental-tip patch


diff -r c6aa074503a5 -r e2afba1bfbe5 tools.suckless.org/dmenu/patches/dmenu-tip-incremental.diff
--- a/tools.suckless.org/dmenu/patches/dmenu-tip-incremental.diff Sat Nov 20 09:27:04 2010 +0000
+++ b/tools.suckless.org/dmenu/patches/dmenu-tip-incremental.diff Sat Nov 20 18:55:59 2010 +0000
_AT_@ -1,6 +1,6 @@
-diff -r ccb2b92086bf dmenu.1
---- a/dmenu.1 Thu Aug 12 15:35:51 2010 +0100
-+++ b/dmenu.1 Wed Aug 18 10:59:14 2010 +0100
+diff -r a79e4a9cb167 dmenu.1
+--- a/dmenu.1 Sat Nov 20 09:25:08 2010 +0000
++++ b/dmenu.1 Sat Nov 20 18:51:43 2010 +0000
 _AT_@ -5,6 +5,7 @@
  .B dmenu
  .RB [ \-b ]
_AT_@ -8,8 +8,8 @@
 +.RB [ \-r ]
  .RB [ \-l
  .IR lines ]
- .RB [ \-p
-_AT_@ -48,6 +49,9 @@
+ .RB [ \-m
+_AT_@ -50,6 +51,9 @@
  .B \-i
  dmenu matches menu items case insensitively.
  .TP
_AT_@ -19,10 +19,10 @@
  .BI \-l " lines"
  dmenu lists items vertically, with the given number of lines.
  .TP
-diff -r ccb2b92086bf dmenu.c
---- a/dmenu.c Thu Aug 12 15:35:51 2010 +0100
-+++ b/dmenu.c Wed Aug 18 10:59:14 2010 +0100
-_AT_@ -53,7 +53,7 @@
+diff -r a79e4a9cb167 dmenu.c
+--- a/dmenu.c Sat Nov 20 09:25:08 2010 +0000
++++ b/dmenu.c Sat Nov 20 18:51:43 2010 +0000
+_AT_@ -54,7 +54,7 @@
  static unsigned long normcol[ColLast];
  static unsigned long selcol[ColLast];
  static Atom utf8;
_AT_@ -31,7 +31,16 @@
  static DC *dc;
  static Item *items = NULL;
  static Item *matches, *sel;
-_AT_@ -317,6 +317,10 @@
+_AT_@ -78,6 +78,8 @@
+ topbar = False;
+ else if(!strcmp(argv[i], "-i"))
+ fstrncmp = strncasecmp;
++ else if(!strcmp(argv[i], "-r"))
++ incremental = 1;
+ else if(i == argc-1)
+ usage();
+ /* double flags */
+_AT_@ -364,6 +366,10 @@
                  match();
                  break;
          }
_AT_@ -41,22 +50,13 @@
 + }
          drawmenu();
  }
-
-_AT_@ -487,7 +491,7 @@
-
+
+_AT_@ -536,7 +542,7 @@
+
  void
  usage(void) {
-- fputs("usage: dmenu [-b] [-i] [-l lines] [-p prompt] [-fn font] [-nb color]\n"
-+ fputs("usage: dmenu [-b] [-r] [-i] [-l lines] [-p prompt] [-fn font] [-nb color]\n"
- " [-nf color] [-sb color] [-sf color] [-v]\n", stderr);
+- fputs("usage: dmenu [-b] [-i] [-l lines] [-m monitor] [-p prompt] [-fn font]\n"
++ fputs("usage: dmenu [-b] [-i] [-r] [-l lines] [-m monitor] [-p prompt] [-fn font]\n"
+ " [-nb color] [-nf color] [-sb color] [-sf color] [-v]\n", stderr);
          exit(EXIT_FAILURE);
  }
-_AT_@ -505,6 +509,8 @@
- }
- else if(!strcmp(argv[i], "-b"))
- topbar = False;
-+ else if(!strcmp(argv[i], "-r"))
-+ incremental = True;
- else if(!strcmp(argv[i], "-i"))
- fstrncmp = strncasecmp;
- else if(i == argc-1)
Received on Sat Nov 20 2010 - 19:56:14 CET

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:31 CEST