From b68dbaa8af5c5d7b783f09c3b54daafdd77231b9 Mon Sep 17 00:00:00 2001 From: Thomas Anderson <5776225+CrackedPixel@users.noreply.github.com> Date: Tue, 3 Mar 2026 11:55:50 -0600 Subject: [PATCH] [tools/rexm] Update nextCatIndex (#5616) * removed +1 offset * update from PR feedback --- tools/rexm/rexm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rexm/rexm.c b/tools/rexm/rexm.c index 30ef6411f..011102ce1 100644 --- a/tools/rexm/rexm.c +++ b/tools/rexm/rexm.c @@ -1040,7 +1040,7 @@ int main(int argc, char *argv[]) // Find position to add new example on list, just before the following category // Category order: core, shapes, textures, text, models, shaders, audio int exListNextCatIndex = -1; - if (nextCatIndex != -1) exListNextCatIndex = TextFindIndex(exList, exCategories[nextCatIndex]); + if (nextCatIndex != -1) exListNextCatIndex = TextFindIndex(exList, TextFormat("\n%s", exCategories[nextCatIndex])) + 1; else exListNextCatIndex = exListLen; // EOF strncpy(exListUpdated, exList, exListNextCatIndex);