more THEMERM and THEMERMFILL

Give a little more information if environment variable THEMERM or
THEMERMFILL has an invalid value.
This commit is contained in:
PatR
2025-04-12 10:22:52 -07:00
parent 8f7258dc35
commit ab8ab7b344
2 changed files with 10 additions and 3 deletions

View File

@@ -990,7 +990,7 @@ nhl_get_debug_themerm_name(lua_State *L)
lua_pop(L, 1);
if (wizard)
dbg_themerm = getenv(is_fill ? "THEMERMFILL" : "THEMERM");
if (!dbg_themerm || strlen(dbg_themerm) == 0) {
if (!dbg_themerm || !*dbg_themerm) {
lua_pushnil(L);
} else {
lua_pushstring(L, dbg_themerm);