aboutsummaryrefslogtreecommitdiff
path: root/lib/libedit/vi.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/vi.c
parent7149ee16963d25a78af50c0dd473372f03d23dbd (diff)
Notes
Diffstat (limited to 'lib/libedit/vi.c')
-rw-r--r--lib/libedit/vi.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libedit/vi.c b/lib/libedit/vi.c
index 2d611fb307a3..ae57e07a01da 100644
--- a/lib/libedit/vi.c
+++ b/lib/libedit/vi.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $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 $
*/
#if !defined(lint) && !defined(SCCSID)
@@ -595,13 +595,12 @@ vi_delete_prev_char(EditLine *el, int c __unused)
*/
protected el_action_t
/*ARGSUSED*/
-vi_list_or_eof(EditLine *el, int c __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 {
/*