Re: [hackers] [sbase][PATCH] du: recurse: fix path

2020-06-20 Thread Michael Forney
On 2020-06-03, Richard Ipsum wrote: > path is not fixed up on exit from recursive step, this leads to > incorrect paths in du's output. Thanks, applied with a small tweak to keep the invariant that r->pathlen == strlen(r->path).

[hackers] [sbase] du: recurse: fix path || Richard Ipsum

2020-06-20 Thread git
commit 5c76e79f41250d505bca09d36a5518bf66c51749 Author: Richard Ipsum AuthorDate: Wed Jun 3 12:45:15 2020 +0100 Commit: Michael Forney CommitDate: Sat Jun 20 18:48:14 2020 -0700 du: recurse: fix path path is not fixed up on exit from recursive step, this leads to

[hackers] [sbase] libutil/recurse: Simplify adding trailing slash || Michael Forney

2020-06-20 Thread git
commit fdb9084da94067627941f4f7ee414c447866006a Author: Michael Forney AuthorDate: Sat Jun 20 18:21:35 2020 -0700 Commit: Michael Forney CommitDate: Sat Jun 20 18:48:14 2020 -0700 libutil/recurse: Simplify adding trailing slash We know that r->pathlen < sizeof(r->path)

[hackers] [st] [patch] sixel

2020-06-20 Thread Գասպար Վարդանյան
Hi! I’ve just wanted to say that there is a sixel patch for st created by the libsixel’s author: https://gist.github.com/saitoha/70e0fdf22e3e8f63ce937c7f7da71809     … but it seems outdated

[hackers] [sbase][PATCH 4/5] fold: fix handling of multibyte characters

2020-06-20 Thread Richard Ipsum
--- fold.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/fold.c b/fold.c index a5f320b..169064b 100644 --- a/fold.c +++ b/fold.c @@ -7,6 +7,7 @@ #include "text.h" #include "util.h" +#include "utf.h" static intbflag = 0; static intsflag = 0; @@

[hackers] [sbase][PATCH 5/5] fold: fix handling of -s

2020-06-20 Thread Richard Ipsum
--- fold.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fold.c b/fold.c index 169064b..10a23cf 100644 --- a/fold.c +++ b/fold.c @@ -29,12 +29,14 @@ foldline(struct line *l) { eprintf("fwrite :"); if (l->data[i]

[hackers] [sbase][PATCH 3/5] fold: don't putchar('\n') if last byte is '\n'

2020-06-20 Thread Richard Ipsum
--- fold.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fold.c b/fold.c index a54594b..a5f320b 100644 --- a/fold.c +++ b/fold.c @@ -23,7 +23,8 @@ foldline(struct line *l) { len = ((sflag && spacesect) ? spacesect : i) - last;

[hackers] [sbase][PATCH 2/5] fold: fix handling of \b

2020-06-20 Thread Richard Ipsum
--- fold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fold.c b/fold.c index 9c3c919..a54594b 100644 --- a/fold.c +++ b/fold.c @@ -19,7 +19,7 @@ foldline(struct line *l) { for (i = 0, last = 0, col = 0, spacesect = 0; i < l->len; i++) { if

[hackers] [sbase][PATCH 0/5] fold fixes

2020-06-20 Thread Richard Ipsum
Hi, Some fixes for fold, I have a test set for these which I can also provide if it helps. Thanks, Richard Richard Ipsum (5): fold: fix tabstop column count fold: fix handling of \b fold: don't putchar('\n') if last byte is '\n' fold: fix handling of multibyte characters fold: fix

[hackers] [sbase][PATCH 1/5] fold: fix tabstop column count

2020-06-20 Thread Richard Ipsum
--- fold.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fold.c b/fold.c index a5a987d..9c3c919 100644 --- a/fold.c +++ b/fold.c @@ -39,7 +39,9 @@ foldline(struct line *l) { col = 0; break;