Jacob points out that TS_EOL is broken in BINARY mode.
[u/mdw/putty] / config.c
index ebcd607..536e94a 100644 (file)
--- a/config.c
+++ b/config.c
@@ -294,7 +294,7 @@ static void sessionsaver_handler(union control *ctrl, void *dlg,
            dlg_refresh(ssd->editbox, dlg);
            dlg_refresh(ssd->listbox, dlg);
        } else if (ctrl == ssd->delbutton) {
-           int i = dlg_listbox_index(ctrl, dlg);
+           int i = dlg_listbox_index(ssd->listbox, dlg);
            if (i <= 0) {
                dlg_beep(dlg);
            } else {
@@ -980,6 +980,10 @@ void setup_config_box(struct controlbox *b, struct sesslist *sesslist,
     ctrl_checkbox(s, "Reset scrollback on display activity", 'p',
                  HELPCTX(window_scrollback),
                  dlg_stdcheckbox_handler, I(offsetof(Config,scroll_on_disp)));
+    ctrl_checkbox(s, "Push erased text into scrollback", 'e',
+                 HELPCTX(window_erased),
+                 dlg_stdcheckbox_handler,
+                 I(offsetof(Config,erase_to_scrollback)));
 
     /*
      * The Window/Appearance panel.