In emacs editing mode, sh treated ^D at the end of a line as EOF.

(Apparently by Christos Zoulas.)
Liberated from: NetBSD
This commit is contained in:
Geoff Rehmet 1994-09-09 19:07:43 +00:00
parent b74d92f39a
commit 965f1815ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2622

View File

@ -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 */