From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from postman.osf.org ([130.105.1.152]) by hawkwind.utcs.toronto.edu with SMTP id <2680>; Mon, 22 Jun 1992 14:33:51 -0400 Received: from earth.osf.org by postman.osf.org (5.64+/OSF 1.0) id AA29990; Mon, 22 Jun 92 14:33:30 -0400 Received: by earth.osf.org (5.64/4.7) id AA08937; Mon, 22 Jun 92 14:33:28 -0400 Date: Mon, 22 Jun 1992 14:33:28 -0400 From: rsalz@osf.org Message-Id: <9206221833.AA08937@earth.osf.org> To: rc@hawkwind.utcs.toronto.edu Subject: bug fix for editline If you picked up editline in the last 30 minutes, apply this patch =================================================================== RCS file: RCS/editline.c,v retrieving revision 1.1 diff -c -r1.1 editline.c *** /tmp/,RCSt1a08925 Mon Jun 22 14:32:46 1992 --- editline.c Mon Jun 22 10:31:27 1992 *************** *** 1,4 **** ! /* $Revision: 1.1 $ ** ** Main editing routines for editline library. */ --- 1,4 ---- ! /* $Revision: 1.2 $ ** ** Main editing routines for editline library. */ *************** *** 87,93 **** STATIC SIZE_T ScreenCount; STATIC SIZE_T ScreenSize; STATIC char Version[] = ! "$Header: /usr/users/rsalz/src/rc/edit/RCS/editline.c,v 1.1 92/06/22 12:32:45 rsalz Exp $"; STATIC char *backspace; STATIC int TTYwidth; --- 87,93 ---- STATIC SIZE_T ScreenCount; STATIC SIZE_T ScreenSize; STATIC char Version[] = ! "$Header: /usr/users/rsalz/src/rc/edit/RCS/editline.c,v 1.2 92/06/22 14:31:27 rsalz Exp $"; STATIC char *backspace; STATIC int TTYwidth; *************** *** 786,793 **** TTYput(' '); } TTYbackn(i + 1); - return CSmove; *p = '\0'; } if (Point + nchars > End && (nchars = End - Point) <= 0) return CSstay; --- 786,793 ---- TTYput(' '); } TTYbackn(i + 1); *p = '\0'; + return CSmove; } if (Point + nchars > End && (nchars = End - Point) <= 0) return CSstay;