From b5aa49936910e71a4d294d5814bda5ad83640a7f Mon Sep 17 00:00:00 2001 From: csgr Date: Fri, 9 Sep 1994 19:07:43 +0000 Subject: In emacs editing mode, sh treated ^D at the end of a line as EOF. (Apparently by Christos Zoulas.) Liberated from: NetBSD --- lib/libedit/emacs.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lib/libedit') diff --git a/lib/libedit/emacs.c b/lib/libedit/emacs.c index f960a54..273de107 100644 --- a/lib/libedit/emacs.c +++ b/lib/libedit/emacs.c @@ -55,20 +55,16 @@ em_delete_or_list(el, c) int c; { if (el->el_line.cursor == el->el_line.lastchar) { /* if I'm at the end */ -#ifdef notyet if (el->el_line.cursor == el->el_line.buffer) { /* and the beginning */ -#endif term_overwrite(el, STReof, 4);/* then do a EOF */ term__flush(); return CC_EOF; -#ifdef notyet } else { - re_goto_bottom(el); - *el->el_line.lastchar = '\0'; /* just in case */ - return CC_LIST_CHOICES; + /* Here we could list completions, but it is an error right now */ + term_beep(el); + return CC_ERROR; } -#endif } else { c_delafter(el, el->el_state.argument); /* delete after dot */ -- cgit v1.1