From 307eee7ed0c4dead030782b4f94df2fdb8837a2d Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 31 Mar 2011 18:28:46 +0000 Subject: Vendor import NetBSD's libedit of "2006/03/23 20:22:51 UTC". Obtained from: NetBSD --- vi.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'vi.c') 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 { /* -- cgit v1.2.3