FS-8814: fix build on older libedit

This commit is contained in:
Michael Jerris
2016-02-09 12:38:40 -06:00
parent 809d5bd2d5
commit 7f5af042be
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -214,7 +214,9 @@ static unsigned char console_eofkey(EditLine *el, int ch)
return CC_EOF;
} else {
if (line->cursor != line->lastchar) {
#ifdef HAVE_EL_CURSOR
el_cursor(el, 1);
#endif
el_deletestr(el, 1);
}
return CC_REDISPLAY;