From b36d490b5d0989ad791ace8cf98e36c4a82d5394 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 7 Dec 2024 23:19:37 +0000 Subject: [PATCH] Give the kex selection list box a fixed height. It's actually the limiting factor on how small the whole PuTTY configuration dialog box can be: when KEX_MAX increased from 10 to 11 with the introduction of NTRU, the config box got taller. Now it's back at 10. --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index 6a20c425..df58f7d6 100644 --- a/config.c +++ b/config.c @@ -2747,7 +2747,7 @@ void setup_config_box(struct controlbox *b, bool midsession, c = ctrl_draglist(s, "Algorithm selection policy:", 's', HELPCTX(ssh_kexlist), kexlist_handler, P(NULL)); - c->listbox.height = KEX_MAX; + c->listbox.height = 10; #ifndef NO_GSSAPI ctrl_checkbox(s, "Attempt GSSAPI key exchange", 'k', HELPCTX(ssh_gssapi),