X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/a4451dd11df30dc2d0d262dd6c36642aa2a02b91..8f9e3231fb41f58da5b92bd69ec491a36c63b49f:/config.c diff --git a/config.c b/config.c index 1fedd284..fd1379ab 100644 --- a/config.c +++ b/config.c @@ -1049,7 +1049,9 @@ static void portfwd_handler(union control *ctrl, void *dlg, { static const char *const afs = "A46"; char *afp = strchr(afs, *p); +#ifndef NO_IPV6 int idx = afp ? afp-afs : 0; +#endif if (afp) p++; #ifndef NO_IPV6 @@ -1310,6 +1312,9 @@ void setup_config_box(struct controlbox *b, int midsession, ctrl_checkbox(s, "Implicit CR in every LF", 'r', HELPCTX(terminal_lfhascr), dlg_stdcheckbox_handler, I(offsetof(Config,lfhascr))); + ctrl_checkbox(s, "Implicit LF in every CR", 'f', + HELPCTX(terminal_crhaslf), + dlg_stdcheckbox_handler, I(offsetof(Config,crhaslf))); ctrl_checkbox(s, "Use background colour to erase screen", 'e', HELPCTX(terminal_bce), dlg_stdcheckbox_handler, I(offsetof(Config,bce)));