X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/9546c9c6fd9b1c67c92f4ea2f0039039c63d2f8e..6473492058e854537bb061277bd9eb5c319bf11a:/terminal.h?ds=inline diff --git a/terminal.h b/terminal.h index b6b5a06f..72c8f877 100644 --- a/terminal.h +++ b/terminal.h @@ -171,7 +171,14 @@ struct terminal_tag { void *logctx; - Config *cfg; + /* + * We maintain a full _copy_ of a Config structure here, not + * merely a pointer to it. That way, when we're passed a new + * one for reconfiguration, we can check the differences and + * adjust the _current_ setting of (e.g.) auto wrap mode rather + * than only the default. + */ + Config cfg; }; #define in_utf(term) ((term)->utf || line_codepage==CP_UTF8)