summaryrefslogtreecommitdiff
path: root/emacs.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2011-03-31 18:28:46 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2011-03-31 18:28:46 +0000
commit307eee7ed0c4dead030782b4f94df2fdb8837a2d (patch)
tree2cc853f5a3f072cfa50a5a8ab7a462d3db289a36 /emacs.c
parent04f67c69773abd69e8de67b4bc0b324c4cac4a53 (diff)
Notes
Diffstat (limited to 'emacs.c')
-rw-r--r--emacs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/emacs.c b/emacs.c
index 3f420b450e47e..054dd7e5ccada 100644
--- a/emacs.c
+++ b/emacs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: emacs.c,v 1.20 2005/08/08 14:05:37 christos Exp $ */
+/* $NetBSD: emacs.c,v 1.21 2006/03/06 21:11:56 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)emacs.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: emacs.c,v 1.20 2005/08/08 14:05:37 christos Exp $");
+__RCSID("$NetBSD: emacs.c,v 1.21 2006/03/06 21:11:56 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -52,15 +52,14 @@ __RCSID("$NetBSD: emacs.c,v 1.20 2005/08/08 14:05:37 christos Exp $");
*/
protected el_action_t
/*ARGSUSED*/
-em_delete_or_list(EditLine *el, int c __attribute__((__unused__)))
+em_delete_or_list(EditLine *el, int c)
{
if (el->el_line.cursor == el->el_line.lastchar) {
/* if I'm at the end */
if (el->el_line.cursor == el->el_line.buffer) {
/* and the beginning */
- term_overwrite(el, STReof, 4); /* then do an EOF */
- term__flush();
+ term_writec(el, c); /* then do an EOF */
return (CC_EOF);
} else {
/*