environment variable TTYINV ignored

> Setting TTTINV in the environment no longer has any effect
> for me.

Variable was set immediately prior to the all-zeros
initialization. Fix the ordering of the two statements.
This commit is contained in:
nhmall
2022-06-24 20:39:15 -04:00
parent 1c2cf78b48
commit 3c1c59dd89

View File

@@ -5412,8 +5412,8 @@ core_update_invent_slot()
char *envtmp = nh_getenv("TTYINV");
invmode = envtmp ? atoi(envtmp) : InvNormal;
}
pi_info.fromcore.invmode = invmode;
pi_info = zeropi;
pi_info.fromcore.invmode = invmode;
/* Send the wport a request to get the related settings. */
pi_info.fromcore.core_request = request_settings;
if ((pi = update_invent_slot(g.perm_invent_win, (slot = 0), &pi_info))) {