termio/exec: comment about what we're updating

This commit is contained in:
Mitchell Hashimoto
2023-03-19 10:11:32 -07:00
parent 8f0be3ad9e
commit 6f4e913182

View File

@ -222,6 +222,14 @@ pub fn changeConfig(self: *Exec, config: DerivedConfig) !void {
var copy = config; var copy = config;
defer copy.deinit(); 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; self.terminal.color_palette = config.palette;
} }