summaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1994-08-30 15:16:44 +0000
committercgd <cgd@NetBSD.org>1994-08-30 15:16:44 +0000
commitb7cc0db10391cb6c19eba689631c37f6b74975be (patch)
treebe741abca311adaa315d31821edb562a0615a0e3 /lib/libedit
parent403d5021a4571772c3f122d49da57fe34d2158c1 (diff)
fix for pr 420, from Christos.
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/emacs.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libedit/emacs.c b/lib/libedit/emacs.c
index f960a544a43..273de1079f7 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 */