aboutsummaryrefslogtreecommitdiff
path: root/lib/libedit/common.c
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2007-03-11 18:30:22 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2007-03-11 18:30:22 +0000
commite6de94e677c203f8ea20949853fda5d879cd6f59 (patch)
tree509b6d0c810b13835386c30b69cd13d7ebcd95d7 /lib/libedit/common.c
parent7149ee16963d25a78af50c0dd473372f03d23dbd (diff)
Notes
Diffstat (limited to 'lib/libedit/common.c')
-rw-r--r--lib/libedit/common.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libedit/common.c b/lib/libedit/common.c
index 3259f0ab6972..d4a9fa302bbc 100644
--- a/lib/libedit/common.c
+++ b/lib/libedit/common.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $NetBSD: common.c,v 1.18 2005/08/08 14:05:37 christos Exp $
+ * $NetBSD: common.c,v 1.19 2006/03/06 21:11:56 christos Exp $
*/
#if !defined(lint) && !defined(SCCSID)
@@ -135,7 +135,7 @@ ed_delete_prev_word(EditLine *el, int c __unused)
*/
protected el_action_t
/*ARGSUSED*/
-ed_delete_next_char(EditLine *el, int c __unused)
+ed_delete_next_char(EditLine *el, int c)
{
#ifdef notdef /* XXX */
#define EL el->el_line
@@ -152,9 +152,8 @@ ed_delete_next_char(EditLine *el, int c __unused)
#ifdef KSHVI
return (CC_ERROR);
#else
- term_overwrite(el, STReof, 4);
- /* then do an EOF */
- term__flush();
+ /* then do an EOF */
+ term_writechar(el, c);
return (CC_EOF);
#endif
} else {