aboutsummaryrefslogtreecommitdiff
path: root/vi.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 /vi.c
parent04f67c69773abd69e8de67b4bc0b324c4cac4a53 (diff)
downloadsrc-307eee7ed0c4dead030782b4f94df2fdb8837a2d.tar.gz
src-307eee7ed0c4dead030782b4f94df2fdb8837a2d.zip
Notes
Diffstat (limited to 'vi.c')
-rw-r--r--vi.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/vi.c b/vi.c
index b2d4a05bb9be..756dd1df5e45 100644
--- a/vi.c
+++ b/vi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vi.c,v 1.24 2005/08/10 12:46:24 christos Exp $ */
+/* $NetBSD: vi.c,v 1.25 2006/03/06 21:11:56 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)vi.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: vi.c,v 1.24 2005/08/10 12:46:24 christos Exp $");
+__RCSID("$NetBSD: vi.c,v 1.25 2006/03/06 21:11:56 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -600,13 +600,12 @@ vi_delete_prev_char(EditLine *el, int c __attribute__((__unused__)))
*/
protected el_action_t
/*ARGSUSED*/
-vi_list_or_eof(EditLine *el, int c __attribute__((__unused__)))
+vi_list_or_eof(EditLine *el, int c)
{
if (el->el_line.cursor == el->el_line.lastchar) {
if (el->el_line.cursor == el->el_line.buffer) {
- term_overwrite(el, STReof, 4); /* then do a EOF */
- term__flush();
+ term_writec(el, c); /* then do a EOF */
return (CC_EOF);
} else {
/*