From f4312c45dc5fb1b4831e63087e8563fa0fa4601f Mon Sep 17 00:00:00 2001 From: msmith Date: Wed, 25 Jun 1997 08:14:24 +0000 Subject: Update libedit with changes from NetBSD. Includes history load/save, some buffer overflow guards and some stylistic cleanups. Also adds manpages. Obtained from: NetBSD --- lib/libedit/read.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lib/libedit/read.c') diff --git a/lib/libedit/read.c b/lib/libedit/read.c index 05049e8..6475a25 100644 --- a/lib/libedit/read.c +++ b/lib/libedit/read.c @@ -86,13 +86,17 @@ read__fixio(fd, e) #ifdef EWOULDBLOCK case EWOULDBLOCK: -# define TRY_AGAIN +# ifndef TRY_AGAIN +# define TRY_AGAIN +# endif #endif /* EWOULDBLOCK */ #if defined(POSIX) && defined(EAGAIN) # if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN case EAGAIN: -# define TRY_AGAIN +# ifndef TRY_AGAIN +# define TRY_AGAIN +# endif # endif /* EWOULDBLOCK && EWOULDBLOCK != EAGAIN */ #endif /* POSIX && EAGAIN */ @@ -379,6 +383,11 @@ el_gets(el, nread) re_refresh_cursor(el); break; + case CC_REDISPLAY: + re_clear_lines(el); + re_clear_display(el); + /* FALLTHROUGH */ + case CC_REFRESH: el->el_state.argument = 1; el->el_state.doingarg = 0; -- cgit v1.1