diff options
author | csgr <csgr@FreeBSD.org> | 1994-09-09 19:07:43 +0000 |
---|---|---|
committer | csgr <csgr@FreeBSD.org> | 1994-09-09 19:07:43 +0000 |
commit | b5aa49936910e71a4d294d5814bda5ad83640a7f (patch) | |
tree | be560bdbbe924ab4d9ad8008f442e2b5e0457a9c /lib/libedit | |
parent | 0479dc18739a26d47e956014f54dceeba6455cd8 (diff) | |
download | FreeBSD-src-b5aa49936910e71a4d294d5814bda5ad83640a7f.zip FreeBSD-src-b5aa49936910e71a4d294d5814bda5ad83640a7f.tar.gz |
In emacs editing mode, sh treated ^D at the end of a line as EOF.
(Apparently by Christos Zoulas.)
Liberated from: NetBSD
Diffstat (limited to 'lib/libedit')
-rw-r--r-- | lib/libedit/emacs.c | 10 |
1 files changed, 3 insertions, 7 deletions
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 */ |