src/env_dispatch: add clarifying comment for setenv

This commit is contained in:
David Adam
2025-02-12 14:20:05 +08:00
parent 4cb5927e7a
commit d32c455269

View File

@@ -537,6 +537,8 @@ fn apply_non_term_hacks(vars: &EnvStack) {
// Initialize the terminal subsystem
fn init_terminal(vars: &EnvStack) {
// The current process' environment needs to be modified because the terminfo crate will
// read these variables
for var_name in CURSES_VARIABLES {
if let Some(value) = vars
.getf_unless_empty(var_name, EnvMode::EXPORT)