[hackers] [tabbed] focus(): clear XUrgencyHint from the container window || Mikhail Pchelin

2025-01-23 Thread git
commit 82374bcf6d35f6b05412382b8e51e1202ce4379b Author: Mikhail Pchelin AuthorDate: Tue Jan 21 20:28:42 2025 +0300 Commit: Hiltjo Posthuma CommitDate: Thu Jan 23 14:22:51 2025 +0100 focus(): clear XUrgencyHint from the container window diff --git a/tabbed.c b/tabbed.c index e5664aa

[hackers] [tabbed] Use UTF8_STRING instead of COMPOUND_TEXT || Mikhail Pchelin

2025-01-19 Thread git
. This is most likely an application bug, not a window manager bug. The window has title="0:2:vim - "hostname" " class="tabbed" name="tabbed" diff --git a/tabbed.c b/tabbed.c index 81be5e4..e5664aa 100644 --- a/tabbed.c +++ b/tabbed.c @@ -1264,7 +1264,

[hackers] [sbase/ubase-merge] Move more things around || Roberto E. Vargas Caballero

2024-12-19 Thread git
commit bb367fd6c7a05bd60112ade77098b943a3ed62ef Author: Roberto E. Vargas Caballero AuthorDate: Fri Mar 22 04:32:56 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Thu Dec 19 16:20:39 2024 +0100 Move more things around diff --git a/ubase/fallocate.1 b/linux/fallocate.1

[hackers] [sbase/ubase-merge] Move more things around || Roberto E. Vargas Caballero

2024-12-19 Thread git
commit 7c207664f8acba7228cf7b9234fded698e07ed84 Author: Roberto E. Vargas Caballero AuthorDate: Fri Mar 22 04:32:56 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Thu Dec 19 15:38:32 2024 +0100 Move more things around diff --git a/ubase/mkswap.8 b/linux/mkswap.8

[hackers] [sbase/ubase-merge] Move more things around || Roberto E. Vargas Caballero

2024-12-19 Thread git
commit 8291582b6ee219c6941dea3de87de1ed3f571636 Author: Roberto E. Vargas Caballero AuthorDate: Fri Mar 22 04:32:56 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Thu Dec 19 16:09:48 2024 +0100 Move more things around diff --git a/posix/libutil/concat.c b/libutil

[hackers] [sbase/ubase-merge] Move more things around || Roberto E. Vargas Caballero

2024-12-19 Thread git
commit ca9f7351bbd0f8e6f9aa1cceb3e1910220aff399 Author: Roberto E. Vargas Caballero AuthorDate: Fri Mar 22 04:32:56 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Thu Dec 19 13:40:49 2024 +0100 Move more things around diff --git a/ubase/libutil/cp.c b/ubase/libutil/cp.c

[hackers] [sbase/ubase-merge] Move more things around || Roberto E. Vargas Caballero

2024-12-19 Thread git
commit 6591fb94755d9f3c065add8ace0bf3747157 Author: Roberto E. Vargas Caballero AuthorDate: Fri Mar 22 04:32:56 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Thu Dec 19 13:35:08 2024 +0100 Move more things around diff --git a/ubase/libutil/ealloc.c b/ubase/libutil

[hackers] [sbase/ubase-merge] Move more things around || Roberto E. Vargas Caballero

2024-12-19 Thread git
commit 91aed23a5d5032b4a820a10bd3ddd6dd3968eefa Author: Roberto E. Vargas Caballero AuthorDate: Fri Mar 22 04:32:56 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Thu Dec 19 13:30:32 2024 +0100 Move more things around diff --git a/ubase/libutil/concat.c b/ubase/libutil

[hackers] [sbase] cron: Revert to version before 6c8dc15 || Roberto E. Vargas Caballero

2024-12-19 Thread git
6c8dc15 had some problems and it was really hard to follow the chain of changes, and for that reason I took the conservative decision of reverting to the original code. diff --git a/cron.c b/cron.c index bd9f247..77304cc 100644 --- a/cron.c +++ b/cron.c @@ -17,13 +17,19 @@ #include

[hackers] [sbase] libutil/random: rewrite whole algorithm || Elie Le Vaillant

2024-12-19 Thread git
PRNG, which is the PCG family. It also overhauls random_uniform(), making it way faster. Names were changed (s/random/rng32/g), and reentrant versions added. The PRNG is faster than libc's random(). It is way faster than the previous version, which used diff --git a/libutil/ran

[hackers] [sbase] libutil: add random.c || Elie Le Vaillant

2024-12-19 Thread git
). This adds to libutil a random_uniform function which simply solves the problem of creating integers uniformly in a range. random_seed seeds the generator. arc4random would probably be a better PRNG than random, but it is less portable unfortunately. diff --git a/Makefile b

[hackers] [sbase] head: remove useless buffering || Elie Le Vaillant

2024-12-19 Thread git
need to read then output lines. We do not need anything more complex than counting '\n's, so we shouldn't use a buffer like we currently do. diff --git a/head.c b/head.c index ae550c0..230ad21 100644 --- a/head.c +++ b/head.c @@ -9,15 +9,16 @@ static void head(FILE *f

[hackers] [sbase] cron: fix parsing and '~' behavior || Elie Le Vaillant

2024-12-19 Thread git
es this cron more in line with other interpretations concerning '~'. In other crons, a random number is picked for the starting field, and it doesn't change during all of the program's lifetime, whereas this one used to change its random number everytime it was

[hackers] [sbase] sort: remove useless allocation || Elie Le Vaillant

2024-12-19 Thread git
umns(). diff --git a/sort.c b/sort.c index fbb1abf..dd992e0 100644 --- a/sort.c +++ b/sort.c @@ -123,11 +123,7 @@ columns(struct line *line, const struct keydef *kd, struct column *col) end.len = 1; } col->line.len = MAX(0, end.data - start.data); - if (!(col-&g

[hackers] [sbase] cron: fix '~' range parsing || Elie Le Vaillant

2024-12-19 Thread git
d as abnormal. diff --git a/cron.c b/cron.c index 2f3cedc..bd9f247 100644 --- a/cron.c +++ b/cron.c @@ -254,7 +254,7 @@ parserange(char *str, long low, long high, struct range *r) errno = 0; r->low = strtol(strlow, &e, 10); - if (*e || errno !=

[hackers] [sbase] cron: heavy refactor of parsefield() and matchentry() || Elie Le Vaillant

2024-12-19 Thread git
: random fields, using ~. This is a non-standard addition, but which matches many cron implementations, like OpenBSD's for instance. Its usefulness is debatable. diff --git a/cron.1 b/cron.1 index 1cb90a4..fe907f4 100644 --- a/cron.1 +++ b/cron.1 @@ -21,3 +21,11 @@ instead of the d

[hackers] [sbase] kill: handle TRAP signal || Randy Palamar

2024-12-17 Thread git
. diff --git a/kill.c b/kill.c index e3751a0..b09f55c 100644 --- a/kill.c +++ b/kill.c @@ -18,7 +18,8 @@ struct { #define SIG(n) { #n, SIG##n } SIG(ABRT), SIG(ALRM), SIG(BUS), SIG(CHLD), SIG(CONT), SIG(FPE), SIG(HUP), SIG(ILL), SIG(INT), SIG(KILL), SIG(PIPE), SIG(QUIT), SIG(SEGV

[hackers] [sbase] tar: force decompression || Elie Le Vaillant

2024-12-17 Thread git
commit cafdc7c6561f546578e5d7c842149fa242937a42 Author: Elie Le Vaillant AuthorDate: Fri Dec 6 10:37:41 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Tue Dec 17 11:27:35 2024 +0100 tar: force decompression decomp() needs the force flag -f too. diff --git a

[hackers] [sbase] sed.1: add some missing info || Andrea Calligaris

2024-12-17 Thread git
, might as well document them. diff --git a/sed.1 b/sed.1 index 5ccce6d..b7c6098 100644 --- a/sed.1 +++ b/sed.1 @@ -50,16 +50,32 @@ Append the commands from to the list of editing commands. .El .Sh EXTENDED DESCRIPTION -Editing commands take the form +Editing commands take the form: .Pp [address

[hackers] [sbase] tar: fix problem with paths longer than 100 characters || TahaGTRC

2024-12-17 Thread git
commit 20c27b1ad0f2fae65ede721c43f8cb66186d3049 Author: TahaGTRC AuthorDate: Fri Dec 6 10:37:20 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Tue Dec 17 11:18:06 2024 +0100 tar: fix problem with paths longer than 100 characters diff --git a/tar.c b/tar.c index 7529997

[hackers] [sbase/ubase-merge] Move more things around || Roberto E. Vargas Caballero

2024-12-17 Thread git
commit efd99dad762ac5c64e58e8f2f33f1e7da09f4ded Author: Roberto E. Vargas Caballero AuthorDate: Fri Mar 22 04:32:56 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Tue Dec 17 10:56:56 2024 +0100 Move more things around diff --git a/Makefile b/Makefile new file mode

[hackers] [st] Clear screen: Fix edge case || Markus Rinne

2024-12-06 Thread git
line. diff --git a/st.c b/st.c index 57c6e96..2e3800e 100644 --- a/st.c +++ b/st.c @@ -1705,7 +1705,7 @@ csihandle(void) } break; case 1: /* above */ - if (term.c.y > 1) + if (term.c.y

[hackers] [svkbd] bump version to 0.4.2 || Hiltjo Posthuma

2024-11-26 Thread git
commit faed34dbcf349fb1446ad2c40741105a37e5fb25 Author: Hiltjo Posthuma AuthorDate: Tue Nov 26 18:30:20 2024 +0100 Commit: Hiltjo Posthuma CommitDate: Tue Nov 26 18:30:20 2024 +0100 bump version to 0.4.2 diff --git a/Makefile b/Makefile index 5940999..4e1f0ff 100644 --- a/Makefile

[hackers] [dmenu] remove extra newline || Hiltjo Posthuma

2024-10-30 Thread git
commit 86f0b5119eaa39943013d009967432ffd9d18365 Author: Hiltjo Posthuma AuthorDate: Wed Oct 30 13:03:25 2024 +0100 Commit: Hiltjo Posthuma CommitDate: Wed Oct 30 13:03:25 2024 +0100 remove extra newline diff --git a/dmenu.c b/dmenu.c index 40f93e0..804da64 100644 --- a/dmenu.c

[hackers] [libsl] Avoid unsigned integer underflow in drw_text() || Hiltjo Posthuma

2024-10-30 Thread git
commit 206fe9b99f01604b10e6d8e5ab52a035712476f0 Author: Hiltjo Posthuma AuthorDate: Wed Oct 30 13:03:56 2024 +0100 Commit: Hiltjo Posthuma CommitDate: Wed Oct 30 13:03:56 2024 +0100 Avoid unsigned integer underflow in drw_text() Patch by Raymond Cole , thanks diff --git a

[hackers] [dmenu] Avoid unsigned integer underflow in drw_text() || Hiltjo Posthuma

2024-10-30 Thread git
commit dd3d348ae86065edf2d1e2a1bc920685dc4982fc Author: Hiltjo Posthuma AuthorDate: Wed Oct 30 13:02:57 2024 +0100 Commit: Hiltjo Posthuma CommitDate: Wed Oct 30 13:02:57 2024 +0100 Avoid unsigned integer underflow in drw_text() Patch by Raymond Cole , thanks. diff --git a

[hackers] [dwm] Avoid unsigned integer underflow in drw_text() || Raymond Cole

2024-10-30 Thread git
commit cfb8627a80a334f200f68c2c8f3e384313ebbaf5 Author: Raymond Cole AuthorDate: Mon Oct 28 00:34:55 2024 + Commit: Hiltjo Posthuma CommitDate: Wed Oct 30 13:02:17 2024 +0100 Avoid unsigned integer underflow in drw_text() diff --git a/drw.c b/drw.c index 344de61..c41e6af 100644

[hackers] [libsl] util.c: output function might override errno and thus affect perror() || Hiltjo Posthuma

2024-10-27 Thread git
Raymond Cole with some modifications, thanks! diff --git a/util.c b/util.c index 96b82c9..8e26a51 100644 --- a/util.c +++ b/util.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +#include #include #include #include @@ -10,17 +11,17 @@ void die(const char *fmt

[hackers] [dwm] util.c: output function might override errno and thus affect perror() || Hiltjo Posthuma

2024-10-27 Thread git
Raymond Cole with some modifications, thanks! diff --git a/util.c b/util.c index 96b82c9..8e26a51 100644 --- a/util.c +++ b/util.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +#include #include #include #include @@ -10,17 +11,17 @@ void die(const char *fmt

[hackers] [dmenu] util.c: output function might override errno and thus affect perror() || Hiltjo Posthuma

2024-10-27 Thread git
Raymond Cole with some modifications, thanks! diff --git a/util.c b/util.c index 96b82c9..8e26a51 100644 --- a/util.c +++ b/util.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +#include #include #include #include @@ -10,17 +11,17 @@ void die(const char *fmt

[hackers] [svkbd] Reducing xspacing and yspacing to 1 so touchscreen users have less mistyping. || hazardchem

2024-10-27 Thread git
: hazardchem diff --git a/config.def.h b/config.def.h index d3864c0..e25e6e8 100644 --- a/config.def.h +++ b/config.def.h @@ -8,8 +8,8 @@ static double repeat_delay = 0.75; static int scan_rate = 50; /* one row of keys takes up 1/x of the screen height */ static int heightfactor = 14; -static int

[hackers] [sbase] README: Add usage instruction for sbase-box || Brandon Pribula

2024-10-07 Thread git
usage instruction for sbase-box in sbase's README similar to the one in ubase's README. Also, There's no command named 'sha238sum' but there is one named 'sha384sum' and in the alphabetized list of commands 'paste' should come before &

[hackers] [dwm] sync drw.{c,h} from dmenu || Hiltjo Posthuma

2024-10-05 Thread git
utf8decoding and render invalid utf8 sequences as U+FFFD. Thanks NRK for these improvements! diff --git a/drw.c b/drw.c index a58a2b4..344de61 100644 --- a/drw.c +++ b/drw.c @@ -9,54 +9,40 @@ #include "util.h" #define UTF_INVALID 0xFFFD -#define UTF_SIZ 4 -static const uns

[hackers] [libsl] sync drw.{c,h} from dmenu || Hiltjo Posthuma

2024-10-05 Thread git
utf8decoding and render invalid utf8 sequences as U+FFFD. Thanks NRK for these improvements! diff --git a/drw.c b/drw.c index a58a2b4..344de61 100644 --- a/drw.c +++ b/drw.c @@ -9,54 +9,40 @@ #include "util.h" #define UTF_INVALID 0xFFFD -#define UTF_SIZ 4 -static const uns

[hackers] [sbase] fix: update man pages to standard mdoc date format || Brandon Pribula

2024-09-07 Thread git
h day, year I applied the following patch to sbase's last commit b30fb56 and it fixes the issue. diff --git a/basename.1 b/basename.1 index 27ee983..b69d6b2 100644 --- a/basename.1 +++ b/basename.1 @@ -1,4 +1,4 @@ -.Dd 2015-10-08 +.Dd October 8, 2015 .Dt BASENAME 1 .Os sbase .Sh

[hackers] [libgrapheme] Update grapheme break algorithm to Unicode version 15.1.0 || Laslo Hunhold

2024-09-02 Thread git
cluster LUTs by ~0.5%. We now pass all 1187 character tests. Signed-off-by: Laslo Hunhold diff --git a/Makefile b/Makefile index 4789e1c..d768101 100644 --- a/Makefile +++ b/Makefile @@ -196,7 +196,7 @@ src/sentence.o: src/sentence.c Makefile config.mk gen/sentence.h grapheme.h src

[hackers] [libgrapheme] Don't warn about overlength strings in test data || Laslo Hunhold

2024-09-01 Thread git
commit f01674957f6816d55b8ed1b38a96c4ef5e3120b2 Author: Laslo Hunhold AuthorDate: Sun Sep 1 14:57:28 2024 +0200 Commit: Laslo Hunhold CommitDate: Sun Sep 1 14:57:28 2024 +0200 Don't warn about overlength strings in test data Signed-off-by: Laslo Hunhold diff --

[hackers] [libgrapheme] Fix typo in man/libgrapheme.sh || Laslo Hunhold

2024-09-01 Thread git
: Laslo Hunhold diff --git a/man/libgrapheme.sh b/man/libgrapheme.sh index b93fa27..99cddae 100644 --- a/man/libgrapheme.sh +++ b/man/libgrapheme.sh @@ -85,11 +85,11 @@ points are needed as Unicode's goal is to express all writing systems of the world. To give an example, the abstract char

[hackers] [st] fix BadMatch error when embedding on some windows || Lucas de Sena

2024-08-09 Thread git
ade for dmenu[1]. See this issue[2] on github for context. [1]: https://git.suckless.org/dmenu/commit/0fe460dbd469a1d5b6a7140d0e1801935e4a923b.html [2]: https://github.com/phillbush/xfiles/issues/47 diff --git a/x.c b/x.c index bd23686..d73152b 100644 --- a/x.c +++ b/x.c @@

[hackers] [dwmstatus] Add meme-status to example. || Christoph Lohmann

2024-07-25 Thread git
ave a status of his/her memes. diff --git a/dwmstatus.c b/dwmstatus.c index 1b53292..7b09973 100644 --- a/dwmstatus.c +++ b/dwmstatus.c @@ -211,6 +211,7 @@ main(void) char *t1; char *kbmap; char *surfs; + char *memes; if (!(dpy = XOpen

[hackers] [lchat] lchat: add pledge(2) support || Tom Schwindl

2024-07-14 Thread git
commit 0c43215d0b1981d1689105122da02b7e994e250a Author: Tom Schwindl AuthorDate: Sat Sep 23 22:17:26 2023 +0200 Commit: Jan Klemkow CommitDate: Sun Jul 14 13:40:21 2024 +0200 lchat: add pledge(2) support diff --git a/lchat.c b/lchat.c index 6c57ec4..05274af 100644 --- a/lchat.c

[hackers] [lchat] Avoid useless use of strdup(3). || Jan Klemkow

2024-07-14 Thread git
commit a6a8d970dae07920c68bbb4ca3d8020fa8555b46 Author: Jan Klemkow AuthorDate: Sun Jul 14 13:34:16 2024 +0200 Commit: Jan Klemkow CommitDate: Sun Jul 14 13:34:16 2024 +0200 Avoid useless use of strdup(3). diff --git a/lchat.c b/lchat.c index 0df653d..6c57ec4 100644 --- a/lchat.c

[hackers] [dmenu] render invalid utf8 sequences as U+FFFD || NRK

2024-07-14 Thread git
used to check the behavior before and after the patch: $ printf "0\xef1234567\ntest" | dmenu Ref: https://lists.suckless.org/dev/2407/35646.html diff --git a/drw.c b/drw.c index eb71da7..f151ae5 100644 --- a/drw.c +++ b/drw.c @@ -237,7 +237,8 @@ drw_text(Drw *

[hackers] [dmenu] drw.c: use the same pattern as ellipsis_width to check for infinite recursion || Hiltjo Posthuma

2024-07-14 Thread git
commit 475d8093cb8d29d5756937bfa9e0b3b9e415f632 Author: Hiltjo Posthuma AuthorDate: Sun Jul 14 11:40:20 2024 +0200 Commit: Hiltjo Posthuma CommitDate: Sun Jul 14 11:43:01 2024 +0200 drw.c: use the same pattern as ellipsis_width to check for infinite recursion diff --git a/drw.c b

[hackers] [dmenu] overhaul utf8decode() || NRK

2024-07-14 Thread git
* report how many bytes to advance on error these will be useful in the next commit to render invalid utf8 sequences. the new implementation is also shorter and more direct. diff --git a/drw.c b/drw.c index 78a2b27..eb71da7 100644 --- a/drw.c +++ b/drw.c @@ -9,54 +9,40

[hackers] [dwm] Add missing void to updateclientlist definition || Pontus Stenetorp

2024-06-08 Thread git
-prototypes for OpenBSD's 16.0.6 Clang. diff --git a/dwm.c b/dwm.c index f1d86b2..67c6b2b 100644 --- a/dwm.c +++ b/dwm.c @@ -1851,7 +1851,7 @@ updatebarpos(Monitor *m) } void -updateclientlist() +updateclientlist(void) { Client *c; Monitor *m;

[hackers] [surf/surf-webkit2] webext: Free JavaScript objects || Quentin Rameau

2024-06-02 Thread git
always increased, and has to be released always. diff --git a/webext-surf.c b/webext-surf.c index 84191f3..230c71b 100644 --- a/webext-surf.c +++ b/webext-surf.c @@ -25,6 +25,7 @@ readsock(GIOChannel *s, GIOCondition c, gpointer unused) static char js[48], msg[MSGBUFSZ

[hackers] [surf/surf-webkit2] webext: Process full messages || Quentin Rameau

2024-06-02 Thread git
. Do a bit of message reassembly. diff --git a/webext-surf.c b/webext-surf.c index 230c71b..7063fa7 100644 --- a/webext-surf.c +++ b/webext-surf.c @@ -19,61 +19,99 @@ static WebKitWebExtension *webext; static int sock; -static gboolean -readsock(GIOChannel *s, GIOCondition c, gpointer unused

[hackers] [surf/surf-webkit2] Fix message sizes for web extension communication || Quentin Rameau

2024-06-02 Thread git
commit b48be75179e5e2839b60f713111a1789b868cede Author: Quentin Rameau AuthorDate: Sun Mar 17 08:06:01 2024 +0100 Commit: Quentin Rameau CommitDate: Sun Mar 17 09:13:56 2024 +0100 Fix message sizes for web extension communication diff --git a/surf.c b/surf.c index f35cb05..18d65d7

[hackers] [surf/surf-webkit2] Update deprecated JavaScript eval function || Quentin Rameau

2024-06-02 Thread git
deprecated since 2.40. diff --git a/surf.c b/surf.c index b8b76c9..1515a57 100644 --- a/surf.c +++ b/surf.c @@ -973,7 +973,8 @@ evalscript(Client *c, const char *jsstr, ...) script = g_strdup_vprintf(jsstr, ap); va_end(ap); - webkit_web_view_run_javascript(c->view, scr

[hackers] [surf/surf-webkit2] Update get frame name function || Quentin Rameau

2024-06-02 Thread git
deprecated since 2.40. diff --git a/surf.c b/surf.c index 72b4933..209120f 100644 --- a/surf.c +++ b/surf.c @@ -1664,8 +1664,7 @@ decidenavigation(WebKitPolicyDecision *d, Client *c) case WEBKIT_NAVIGATION_TYPE_OTHER: /* fallthrough */ default: /* Do not navigate to

[hackers] [surf/surf-webkit2] Remove setting processing model || Quentin Rameau

2024-06-02 Thread git
supported since 2.40. diff --git a/surf.c b/surf.c index 1515a57..72b4933 100644 --- a/surf.c +++ b/surf.c @@ -1152,10 +1152,6 @@ newview(Client *c, WebKitWebView *rv) cookiemanager = webkit_web_context_get_cookie_manager(context); - /* rendering process model, can be

[hackers] [surf/surf-webkit2] webext: Remove unused functions || Quentin Rameau

2024-06-02 Thread git
this code can always be brought back if needed. diff --git a/surf.c b/surf.c index 209120f..f35cb05 100644 --- a/surf.c +++ b/surf.c @@ -189,7 +189,6 @@ static gboolean buttonreleased(GtkWidget *w, GdkEvent *e, Client *c); static GdkFilterReturn processx(GdkXEvent *xevent, GdkEvent *

[hackers] [surf/surf-webkit2] Move TLS parameters handling to datamanager || Quentin Rameau

2024-06-02 Thread git
--git a/surf.c b/surf.c index 86a95f6..b8b76c9 100644 --- a/surf.c +++ b/surf.c @@ -847,7 +847,8 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a) case SpellLanguages: return; /* do nothing */ case StrictTLS

[hackers] [surf/surf-webkit2] Remove frame flattening toggle || Quentin Rameau

2024-06-02 Thread git
commit 175710126c27f4906218e40ece00abae179a1b44 Author: Quentin Rameau AuthorDate: Sun Mar 17 06:40:28 2024 +0100 Commit: Quentin Rameau CommitDate: Sun Mar 17 08:22:18 2024 +0100 Remove frame flattening toggle This has been deprecated since 2.38. diff --git a/config.def.h

[hackers] [surf/surf-webkit2] Remove Java support toggle || Quentin Rameau

2024-06-02 Thread git
commit 3f4292b7ccc4d25002a17d9f821ea0274c57098b Author: Quentin Rameau AuthorDate: Sun Mar 17 06:47:51 2024 +0100 Commit: Quentin Rameau CommitDate: Sun Mar 17 08:22:18 2024 +0100 Remove Java support toggle This has been deprecated since 2.38. diff --git a/config.def.h b

[hackers] [surf/surf-webkit2] Add webkit URI scheme || Quentin Rameau

2024-06-02 Thread git
commit f1d47112d6a9fa1848289a4a48e581992e5f91d7 Author: Quentin Rameau AuthorDate: Sun Mar 17 08:15:39 2024 +0100 Commit: Quentin Rameau CommitDate: Sun Mar 17 08:22:17 2024 +0100 Add webkit URI scheme diff --git a/surf.c b/surf.c index f8c8dec..2780072 100644 --- a/surf.c +++ b

[hackers] [st] support colons in SGR character attributes || Hiltjo Posthuma

2024-05-01 Thread git
olons (standard) or semicolons (legacy) to separate the subparameters (but after the first colon, colons must be used). diff --git a/st.c b/st.c index b9f66e7..57c6e96 100644 --- a/st.c +++ b/st.c @@ -1132,6 +1132,7 @@ csiparse(void) { char *p = csiescseq.buf, *np; long int

[hackers] [st] bump version to 0.9.2 || Hiltjo Posthuma

2024-04-05 Thread git
commit d63b9eb90245926b531bd54b1d591adb96613e70 Author: Hiltjo Posthuma AuthorDate: Fri Apr 5 12:18:41 2024 +0200 Commit: Hiltjo Posthuma CommitDate: Fri Apr 5 12:18:41 2024 +0200 bump version to 0.9.2 diff --git a/config.mk b/config.mk index 7f35f71..fdc29a7 100644 --- a/config.mk

[hackers] [st] Reset title when an empty title string is given || DOGMAN

2024-04-03 Thread git
there should ever be a case where the st window doesn't have a title property. diff --git a/x.c b/x.c index b36fb8c..bd23686 100644 --- a/x.c +++ b/x.c @@ -1617,6 +1617,9 @@ xseticontitle(char *p) XTextProperty prop; DEFAULT(p, opt_title); + if (p[0] == '\0&#

[hackers] [st] Revert "Fix cursor move with wide glyphs" || Hiltjo Posthuma

2024-03-30 Thread git
leep 2 && printf "\e[D" && sleep 2 After the patch it caused regressions, example test-case: printf "A字\bB\n" diff --git a/st.c b/st.c index 683493d..b9f66e7 100644 --- a/st.c +++ b/st.c @@ -86,8 +86,8 @@ enum escape_state { typ

[hackers] [sbase] ed: Add other pending bug || Roberto E. Vargas Caballero

2024-03-21 Thread git
() function of ed has serious problems that have to be solved. diff --git a/TODO b/TODO index 6a0968e..575b3d9 100644 --- a/TODO +++ b/TODO @@ -57,6 +57,15 @@ ed . 1g/^$/p +* cat <

[hackers] [sbase/ubase-merge] Move more things around || Roberto E. Vargas Caballero

2024-03-21 Thread git
commit 23f879d1dcd82674ce51b1d453eedf4b334ef04f Author: Roberto E. Vargas Caballero AuthorDate: Fri Mar 22 04:32:56 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Fri Mar 22 04:32:56 2024 +0100 Move more things around diff --git a/ubase/blkdiscard.8 b/linux/blkdiscard.8

[hackers] [tabbed] bump version to 0.8 || Hiltjo Posthuma

2024-03-19 Thread git
commit 7215169fbbb1f81c3bad49b847d1e5907f6ab70c Author: Hiltjo Posthuma AuthorDate: Tue Mar 19 12:12:32 2024 +0100 Commit: Hiltjo Posthuma CommitDate: Tue Mar 19 12:12:32 2024 +0100 bump version to 0.8 diff --git a/Makefile b/Makefile index 54ba350..dda3cdb 100644 --- a/Makefile

[hackers] [dmenu] bump version to 5.3 || Hiltjo Posthuma

2024-03-19 Thread git
commit 7be720cc88ed2294338f7182600df10f21c575ce Author: Hiltjo Posthuma AuthorDate: Tue Mar 19 12:12:52 2024 +0100 Commit: Hiltjo Posthuma CommitDate: Tue Mar 19 12:12:52 2024 +0100 bump version to 5.3 diff --git a/config.mk b/config.mk index 566348b..137f7c8 100644 --- a/config.mk

[hackers] [dwm] bump version to 6.5 || Hiltjo Posthuma

2024-03-19 Thread git
commit 061e9fe9a7db396c0c4f3d996c3908fb43a6d50c Author: Hiltjo Posthuma AuthorDate: Tue Mar 19 12:13:16 2024 +0100 Commit: Hiltjo Posthuma CommitDate: Tue Mar 19 12:13:16 2024 +0100 bump version to 6.5 diff --git a/config.mk b/config.mk index ba64d3d..8efca9a 100644 --- a/config.mk

[hackers] [st] bump version to 0.9.1 || Hiltjo Posthuma

2024-03-19 Thread git
commit 5ce971628106fb767ef91bf4386227423f5fdf98 Author: Hiltjo Posthuma AuthorDate: Tue Mar 19 12:13:42 2024 +0100 Commit: Hiltjo Posthuma CommitDate: Tue Mar 19 12:13:42 2024 +0100 bump version to 0.9.1 diff --git a/config.mk b/config.mk index 1e306f8..7f35f71 100644 --- a

[hackers] [st] config.def.h: improve latency for the default configuration || Hiltjo Posthuma

2024-03-17 Thread git
commit f20e169a20f3ee761f7e09714f1d4c10916cf4c6 Author: Hiltjo Posthuma AuthorDate: Sun Mar 17 14:42:44 2024 +0100 Commit: Hiltjo Posthuma CommitDate: Sun Mar 17 14:42:44 2024 +0100 config.def.h: improve latency for the default configuration diff --git a/config.def.h b/config.def.h

[hackers] [sbase/ubase-merge] Move things out of ubase || Roberto E. Vargas Caballero

2024-03-13 Thread git
commit ba7741a7bc6ebc7e7d90076f69757d93f43d0a34 Author: Roberto E. Vargas Caballero AuthorDate: Wed Mar 13 12:07:59 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Wed Mar 13 12:07:59 2024 +0100 Move things out of ubase diff --git a/ubase/chvt.1 b/linux/chvt.1 similarity

[hackers] [sbase/ubase-merge] Move more things around || Roberto E. Vargas Caballero

2024-03-13 Thread git
commit bbd10e0d3036a40260f41eae445488baf7bf27a1 Author: Roberto E. Vargas Caballero AuthorDate: Wed Mar 13 13:47:59 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Wed Mar 13 13:47:59 2024 +0100 Move more things around diff --git a/ubase/ctrlaltdel.8 b/linux/ctrlaltdel.8

[hackers] [sbase/ubase-merge] Move non posix tools out of sbase || Roberto E. Vargas Caballero

2024-03-13 Thread git
commit 5c804bdf5696ed20a46fcdc76981af75ba65 Author: Roberto E. Vargas Caballero AuthorDate: Wed Mar 13 11:41:28 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Wed Mar 13 11:52:40 2024 +0100 Move non posix tools out of sbase diff --git a/ubase/clear.1 b/curses-dummy

[hackers] [sbase/ubase-merge] Move non posix tools out of sbase || Roberto E. Vargas Caballero

2024-03-13 Thread git
commit 5335e18bc135e4917124f02062fa634e5af23d0f Author: Roberto E. Vargas Caballero AuthorDate: Wed Mar 13 11:41:28 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Wed Mar 13 11:42:27 2024 +0100 Move non posix tools out of sbase diff --git a/ubase/clear.1 b/curses-dummy

[hackers] [sbase/ubase-merge] Move sbase into a subdirectory || Roberto E. Vargas Caballero

2024-03-13 Thread git
commit 232b10bcd8bc7cce3dfaff36858dfd81fd453a47 Author: Roberto E. Vargas Caballero AuthorDate: Tue Mar 12 21:44:03 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Tue Mar 12 21:44:03 2024 +0100 Move sbase into a subdirectory diff --git a/LICENSE b/sbase/LICENSE

[hackers] [sbase] build: Fix sbase-box-install target || Roberto E. Vargas Caballero

2024-03-12 Thread git
non valid shell script and there was a possibility to fatorize the creation of the proto file instead of repeating it in all the actions that required. diff --git a/Makefile b/Makefile index 8cfd981..e3b6936 100644 --- a/Makefile +++ b/Makefile @@ -220,18 +220,19 @@ getconf.o: getconf.h

[hackers] [ubase] su: Fix running it without arguments The commit 8f5a0c3 introduced a regression and the logic to control the number of arguments was broken after it, giving an error when su was exec

2024-03-07 Thread git
regression and the logic to control the number of arguments was broken after it, giving an error when su was executed without parameters. diff --git a/su.c b/su.c index eb8bea7..161d2ec 100644 --- a/su.c +++ b/su.c @@ -26,7 +26,7 @@ usage(void) int main(int argc, char *argv[]) { - char

[hackers] [sbase] tar: chktar: fix conditional typo || Elie Le Vaillant

2024-03-06 Thread git
commit 13898fa7a91155a60c4c0bd61d4b7693a2ff3f09 Author: Elie Le Vaillant AuthorDate: Tue Mar 5 21:20:57 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Wed Mar 6 16:00:10 2024 +0100 tar: chktar: fix conditional typo diff --git a/tar.c b/tar.c index 5f73c26..7529997

[hackers] [ubase] su: don't set $PATH || neeshy

2024-03-06 Thread git
y via the default profile. Also, carrying the path over for non-login shells conforms to the behavior of util-linux's su. diff --git a/config.def.h b/config.def.h index 577833e..257cfac 100644 --- a/config.def.h +++ b/config.def.h @@ -1,6 +1,5 @@ /* See LICENSE file for copyright a

[hackers] [ubase] su: fix setting argv0 || neeshy

2024-03-06 Thread git
p was specified. Only populate newargv once the shell is properly determined. diff --git a/su.c b/su.c index b44457e..64ca9b6 100644 --- a/su.c +++ b/su.c @@ -75,9 +75,6 @@ main(int argc, char *argv[]) shell = pw->pw_shell[0] == '\0' ? "/bin/sh" : pw-

[hackers] [ubase] su: check $SHELL for validity || neeshy

2024-03-06 Thread git
ll to execve will fail when -p is specified. Fallback to the user's login shell if $SHELL is invalid. diff --git a/su.c b/su.c index 64ca9b6..0f16637 100644 --- a/su.c +++ b/su.c @@ -28,7 +28,7 @@ int main(int argc, char *argv[]) { char *usr = "root", *pass; -

[hackers] [ubase] su: simplify logic || neeshy

2024-03-06 Thread git
commit 8f5a0c32362dc447ab066f9c3ad7802153a6bb40 Author: neeshy AuthorDate: Mon Feb 12 21:26:35 2024 -0500 Commit: Roberto E. Vargas Caballero CommitDate: Wed Mar 6 10:11:07 2024 +0100 su: simplify logic Inline dologin, and simplify common code diff --git a/su.c b/su.c

[hackers] [sbase] tar: sanitize, chktar: leading spaces should be skipped over || Elie Le Vaillant

2024-03-05 Thread git
just trailing ones, which leads to recognizing such archives as malformed. This fixes it: we now skip over leading spaces, allowing strtol(3) to read those numeric fields. diff --git a/tar.c b/tar.c index d3a9f3b..5f73c26 100644 --- a/tar.c +++ b/tar.c @@ -399,10 +399,12 @@ sanitize

[hackers] [st] set upper limit for REP escape sequence argument || Tommi Hirvola

2024-03-04 Thread git
x27; would call tputc('L') 2^31 times, making st unresponsive. This commit allows repeating the last character at most 65535 times in order to prevent freezing and DoS attacks. diff --git a/st.c b/st.c index 77c3e8a..683493d 100644 --- a/st.c +++ b/st.c @@ -1643,7 +1643

[hackers] [st] Fix cursor move with wide glyphs || Quentin Rameau

2024-02-25 Thread git
glyhps (using more than a single column). The glyph rune is set on its first column, and the other ones are to 0, so loop until we detect the start of the previous glyph. diff --git a/st.c b/st.c index 034954d..77c3e8a 100644 --- a/st.c +++ b/st.c @@ -86,8 +86,8 @@ enum escape_state

[hackers] [st] csi: check for private marker in 'S' case || Tim Culverhouse

2024-02-18 Thread git
eration when XTSMGRAPHICS is seen, which can cause unexpected display artifacts. diff --git a/st.c b/st.c index d6478f5..034954d 100644 --- a/st.c +++ b/st.c @@ -1728,6 +1728,7 @@ csihandle(void) } break; case 'S': /* SU -- Scroll line up */ +

[hackers] [sbase] expr: tonum: handle case where result was previously calculated || Randy Palamar

2024-01-30 Thread git
is is not the case when doop() is called with the result of a previous calculation. However in that case we know that v->num is already valid so we can simply return. diff --git a/expr.c b/expr.c index 3afb94b..044c6c1 100644 --- a/expr.c +++ b/expr.c @@ -21,7 +21,13 @@ static void ton

[hackers] [sbase] build: Fix OBJ definition and remove MAN || Roberto E. Vargas Caballero

2024-01-19 Thread git
implementations. diff --git a/Makefile b/Makefile index 95bb21d..8cfd981 100644 --- a/Makefile +++ b/Makefile @@ -190,14 +190,13 @@ BIN =\ xinstall\ yes -OBJ = $(BIN:=.o) $(LIBUTFOBJ) $(LIBUTILOBJ) -MAN = $(BIN:=.1) +OBJ = $(LIBUTFOBJ) $(LIBUTILOBJ) all: $(BIN) $(BIN): $(LIB

[hackers] [sbase] expr: don't evaluate matched substr as a number || Randy Palamar

2024-01-16 Thread git
ttern contains a subexpression then the first matched subexpression should be returned if it exists. This fixes things like the following: ./expr 3 : '\(.*\)' Before: 3 After: 00003 diff --git a/expr.c b/expr.c index ae32b9f..3afb94b 100644 --- a/expr

[hackers] [sbase] expr: treat expressions as strs until evaluation || Randy Palamar

2024-01-16 Thread git
his commit fixes that issue. diff --git a/expr.c b/expr.c index 1299200..ae32b9f 100644 --- a/expr.c +++ b/expr.c @@ -18,11 +18,13 @@ struct val { }; static void -enan(struct val *v) +tonum(struct val *v) { - if (!v->str) - return; - enprintf(2, "syntax error:

[hackers] [sbase] ed: Add new TODO || Roberto E. Vargas Caballero

2024-01-12 Thread git
commit 7d5b113423ae72b2edbd8433871ad8a819bfadca Author: Roberto E. Vargas Caballero AuthorDate: Fri Jan 12 20:48:42 2024 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Fri Jan 12 20:48:42 2024 +0100 ed: Add new TODO diff --git a/TODO b/TODO index 3432591..6a0968e 100644

[hackers] [sbase] ed: Handle correctly lines in substitutions || Roberto E. Vargas Caballero

2023-12-29 Thread git
a replace pattern with embedded newlines which modifies the line/index assignament. Using a range in the address fail because afther the call to subline() the next line has to be searched based in the index because the replace could insert newlines. diff --git a/TODO b/TODO index

[hackers] [sbase] sbase-box: Fix segmentation fault when exe without args || Jules Maselbas

2023-12-28 Thread git
without argument, the check sbase-box options doesn't verify the argument count leading to a segfault. Add a check on the argc before parsing sbase-box options (currently only `-i`) diff --git a/scripts/mkbox b/scripts/mkbox index b9e9bb0..db2bdb9 100755 --- a/scripts/mkbox

[hackers] [sbase] ed: Don't undo commands in sigint || Roberto E. Vargas Caballero

2023-12-28 Thread git
DED DESCRIPTION section). diff --git a/ed.c b/ed.c index 0705beb..4cba483 100644 --- a/ed.c +++ b/ed.c @@ -740,6 +740,7 @@ chksignals(void) if (intr) { intr = 0; + newcmd = 1; clearerr(stdin); error("Interrupt"); }

[hackers] [sbase] ed: Print only last line in empty command || Roberto E. Vargas Caballero

2023-12-28 Thread git
commit 137f0917e48c5572ad7de889944af6b10f3c1035 Author: Roberto E. Vargas Caballero AuthorDate: Wed Dec 6 01:20:06 2023 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Thu Dec 28 17:19:17 2023 +0100 ed: Print only last line in empty command diff --git a/ed.c b/ed.c index

[hackers] [sbase] ed: Simplify sighup dealing || Roberto E. Vargas Caballero

2023-12-28 Thread git
can move the modification check inside the new dump() function. diff --git a/ed.c b/ed.c index eaa4ca9..0705beb 100644 --- a/ed.c +++ b/ed.c @@ -710,6 +710,9 @@ dump(void) { char *home; + if (modflag) + return; + line1 = nextln(0); line2 = lastln

[hackers] [sbase] ed: Remove nothing comments || Roberto E. Vargas Caballero

2023-12-28 Thread git
this kind of comments and it is better to get rid of them. diff --git a/ed.c b/ed.c index b6f4f1c..b94afa5 100644 --- a/ed.c +++ b/ed.c @@ -199,7 +199,7 @@ makeline(char *s, int *off) len = 0; } else { while ((c = *s++) &&

[hackers] [sbase] ed: Fix G and V commands || Roberto E. Vargas Caballero

2023-12-28 Thread git
commit 2d4d7dc6d46ed7d227d49110196846d72f095d4b Author: Roberto E. Vargas Caballero AuthorDate: Wed Dec 6 00:38:49 2023 +0100 Commit: Roberto E. Vargas Caballero CommitDate: Thu Dec 28 17:16:34 2023 +0100 ed: Fix G and V commands diff --git a/ed.c b/ed.c index b94afa5..35fddf1

[hackers] [sbase] ed: Fix makeline || Roberto E. Vargas Caballero

2023-12-28 Thread git
function and the global field was not updated, making that new lines added were marked as global being processed in the current global command. diff --git a/ed.c b/ed.c index a8bc7d5..b6f4f1c 100644 --- a/ed.c +++ b/ed.c @@ -185,19 +185,20 @@ makeline(char *s, int *off) if

[hackers] [sbase] ed: Update TODO || Roberto E. Vargas Caballero

2023-12-28 Thread git
commit 09dc00f9951a5e8b07eb79f0cf6e090d6ef9532d Author: Roberto E. Vargas Caballero AuthorDate: Wed Nov 29 21:49:05 2023 +0100 Commit: k0ga CommitDate: Thu Dec 28 17:04:13 2023 +0100 ed: Update TODO Remove the cases are tested to work correctly now. diff --git a/TODO b

[hackers] [sbase] ed: Avoid dangling pointer in getrhs() || Roberto E. Vargas Caballero

2023-12-28 Thread git
then next call will see a pointer that maybe it will try to free because the call to error unwind the frame stack. diff --git a/ed.c b/ed.c index 63f46c3..a5eea16 100644 --- a/ed.c +++ b/ed.c @@ -1102,9 +1102,9 @@ getrhs(int delim) } if (!strcmp("%&qu

[hackers] [sbase] ed: Improve execsh || Roberto E. Vargas Caballero

2023-12-28 Thread git
commit 890f6c2c050149e63efe5b385b104c8383342973 Author: Roberto E. Vargas Caballero AuthorDate: Mon Nov 27 09:21:45 2023 +0100 Commit: k0ga CommitDate: Thu Dec 28 17:02:44 2023 +0100 ed: Improve execsh diff --git a/ed.c b/ed.c index a5eea16..a8bc7d5 100644 --- a/ed.c +++ b/ed.c

  1   2   3   4   5   6   7   8   9   10   >