X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/2647b10332087c0705b9d8a38c8af473a8a4acba..fc6f0fc2d407ef98ab5e171210f840bd282cdaa8:/terminal.h diff --git a/terminal.h b/terminal.h index b6b5a06f..daadd708 100644 --- a/terminal.h +++ b/terminal.h @@ -171,9 +171,18 @@ struct terminal_tag { void *logctx; - Config *cfg; + struct unicode_data *ucsdata; + + /* + * 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) +#define in_utf(term) ((term)->utf || (term)->ucsdata->line_codepage==CP_UTF8) #endif