From d32c4552693fe77231dd063ea512ef2cfc0730e0 Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 12 Feb 2025 14:20:05 +0800 Subject: [PATCH] src/env_dispatch: add clarifying comment for setenv --- src/env_dispatch.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/env_dispatch.rs b/src/env_dispatch.rs index 0977dab98..2f2950718 100644 --- a/src/env_dispatch.rs +++ b/src/env_dispatch.rs @@ -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)