1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix type mismatches in new conf_key_info.

I suspected there'd be one or two mistakes introduced by that
transcription in spite of the test suite, and there were!

CONF_mouseautocopy had its default labelled as int rather than bool,
because it didn't _look_ boolean to my conversion scripts or to my
eyeballs - but its default value is actually a macro that expands to
'true' or 'false' (depending on platform), so it is really.

And CONF_supdup_ascii_set, conversely, is an int which had its default
labelled as bool, which was due to my conversion scripts faithfully
transcribing the same confusion in the original code.
This commit is contained in:
Simon Tatham 2023-09-22 15:31:02 +01:00
parent 41b4f78b9b
commit 30d3b609d3

5
conf.h
View File

@ -497,7 +497,7 @@ CONF_OPTION(supdup_location,
)
CONF_OPTION(supdup_ascii_set,
VALUE_TYPE(INT),
DEFAULT_BOOL(false),
DEFAULT_INT(SUPDUP_CHARSET_ASCII),
SAVE_KEYWORD("SUPDUPCharset"),
STORAGE_ENUM(supdup_charset),
)
@ -985,7 +985,8 @@ CONF_OPTION(mouseautocopy,
* selected with the mouse.
*/
VALUE_TYPE(BOOL),
DEFAULT_INT(CLIPUI_DEFAULT_AUTOCOPY),
DEFAULT_BOOL(CLIPUI_DEFAULT_AUTOCOPY), /* platform-dependent bool-valued
* macro */
SAVE_KEYWORD("MouseAutocopy"),
)
CONF_OPTION(mousepaste, /* clipboard used by one-mouse-click paste actions */