diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2011-03-31 18:28:46 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2011-03-31 18:28:46 +0000 |
commit | 307eee7ed0c4dead030782b4f94df2fdb8837a2d (patch) | |
tree | 2cc853f5a3f072cfa50a5a8ab7a462d3db289a36 /vi.c | |
parent | 04f67c69773abd69e8de67b4bc0b324c4cac4a53 (diff) | |
download | src-307eee7ed0c4dead030782b4f94df2fdb8837a2d.tar.gz src-307eee7ed0c4dead030782b4f94df2fdb8837a2d.zip |
Notes
Diffstat (limited to 'vi.c')
-rw-r--r-- | vi.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 { /* |