aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

commit 72d33f70c2424ca554b32dc64212da1274df176d
parent c7573f1f3c883762b36d3a3697bc4581110d4bc9
Author: xplshn <anto@xplshn.com.ar>
Date:   Thu, 26 Nov 2026 19:11:05 -0300

kmap: the accent table the kernel takes is one short of full

Diffstat:
Mcmd/linux/kmap.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/linux/kmap.c b/cmd/linux/kmap.c @@ -253,7 +253,8 @@ load(const struct kmap *k) // the accent table: what each dead key of this layout makes, as many as // the kernel holds memset(&acc, 0, sizeof(acc)); - for (j = 0; j < k->ncompose && acc.cnt < LEN(acc.d); j++) { + // the kernel takes one fewer than its table holds + for (j = 0; j < k->ncompose && acc.cnt < LEN(acc.d) - 1; j++) { const struct kmap_compose *cp = &k->compose[j]; long base = char_of(cp->base), res = char_of(cp->result); int d = dead_of(cp->dead), used = 0;