Re: [dev] [vis] [PATCH] Add '--' as end of options.

2015-05-09 Thread noname
Maybe just copy and use arg.h from st or dwm?

[dev] [st] [PATCH] Small bugfix for makeglyphfontspecs call in drawregion

2015-05-09 Thread suigin
Hi, Here's a patch that fixes a bug when calling `makedrawglyphfontspecs' in `drawregion'. Wasn't offseting the pointer into the input glyphs array by `x1'. The bug isn't causing any problems currently, because `drawregion' is always called with `x1' and `y1' values of 0, but if this ever changes

Re: [dev] [sbase] [PATCH] join: fix typo

2015-05-09 Thread Dimitris Papastamos
On Sat, May 09, 2015 at 01:01:30PM -0400, Wolfgang Corcoran-Mathe wrote: > --- > join.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/join.c b/join.c > index 2522404..58f0f88 100644 > --- a/join.c > +++ b/join.c > @@ -292,7 +292,7 @@ initspan(struct span *sp) > { >

[dev] [sbase] [PATCH] join: fix typo

2015-05-09 Thread Wolfgang Corcoran-Mathe
--- join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/join.c b/join.c index 2522404..58f0f88 100644 --- a/join.c +++ b/join.c @@ -292,7 +292,7 @@ initspan(struct span *sp) { sp->nl = 0; sp->maxl = INIT; - sp->lines = ereallocarray(NULL, INIT, sizeof(

[dev] [vis][RFC][PATCH 1/2 v2] Rework the separation of command name and parameters

2015-05-09 Thread Silvan Jegen
By replacing the first non-alphanumeric character (except '!' which is replaced by ' ' to get it ignored) with '\0' we distinguish the command name from the parameters. That way the 'substitute' command (and its alias 's') is properly recognized. This is somewhat hacky because for the 'substitute'

[dev] [vis][RFC][PATCH 2/2 v2] Implement the execution of external commands and cmd_substitute

2015-05-09 Thread Silvan Jegen
We use the fork/exec pattern to execute an external command. Two functions using this approach are implemented in this patch. 1. exec_external_cmd uses the pipe function to write to the stdin of the executed command and read from its stdout. The data being sent to the external command's stdin co