X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=ldisc.c;h=0e864874efcb0b9908693d90bc67078d9bc4fab7;hb=d23c0972cd850c77871f9a314e0520d7023c8b62;hp=311854060e03038b84f9f9e90ae4718e95a1a7b4;hpb=d870b5650e48eb04529e8f8d8e9f73ca9923b3a1;p=PuTTY.git diff --git a/ldisc.c b/ldisc.c index 31185406..0e864874 100644 --- a/ldisc.c +++ b/ldisc.c @@ -128,28 +128,19 @@ void ldisc_free(void *handle) sfree(ldisc); } +void ldisc_echoedit_update(void *handle) +{ + Ldisc ldisc = (Ldisc) handle; + frontend_echoedit_update(ldisc->frontend, ECHOING, EDITING); +} + void ldisc_send(void *handle, char *buf, int len, int interactive) { Ldisc ldisc = (Ldisc) handle; int keyflag = 0; - /* - * Called with len=0 when the options change. We must inform - * the front end in case it needs to know. - */ - if (len == 0) { - ldisc_update(ldisc->frontend, ECHOING, EDITING); - return; - } - /* - * If that wasn't true, then we expect ldisc->term to be non-NULL - * hereafter. (The only front ends which have an ldisc but no term - * are those which do networking but no terminal emulation, in - * which case they need the above if statement to handle - * ldisc_updates passed from the back ends, but should never send - * any actual input through this function.) - */ assert(ldisc->term); + assert(len); /* * Notify the front end that something was pressed, in case