From 6f4e913182dec4aedbb05c72e0cb84875dc6561a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 19 Mar 2023 10:11:32 -0700 Subject: [PATCH] termio/exec: comment about what we're updating --- src/termio/Exec.zig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index 515a66c25..cb9b157e4 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -222,6 +222,14 @@ pub fn changeConfig(self: *Exec, config: DerivedConfig) !void { var copy = config; defer copy.deinit(); + // Update the configuration that we know about. + // + // Specific things we don't update: + // - command, working-directory: we never restart the underlying + // process so we don't care or need to know about these. + + // Update the palette. Note this will only apply to new colors drawn + // since we decode all palette colors to RGB on usage. self.terminal.color_palette = config.palette; }