From: Chet Ramey Date: Mon, 5 Oct 2020 22:20:49 +0000 (-0400) Subject: Readline-8.1-rc1 release X-Git-Tag: readline-8.1-rc1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=656e206e69f0a893b48130d02a92e1e1d1de9f53;p=thirdparty%2Freadline.git Readline-8.1-rc1 release --- diff --git a/CHANGES b/CHANGES index 8c57d10..e4534ad 100644 --- a/CHANGES +++ b/CHANGES @@ -73,6 +73,10 @@ w. If readline is handling a SIGTTOU, make sure SIGTTOU is blocked while executing the terminal cleanup code, since it's no longer run in a signal handling context. +x. Fixed a bug that could cause an application with an application-specific + redisplay function to crash if the line data structures had not been + initialized. + 2. New Features in Readline a. If a second consecutive completion attempt produces matches where the first diff --git a/Makefile.in b/Makefile.in index 8dd5ca5..7803f27 100644 --- a/Makefile.in +++ b/Makefile.in @@ -72,7 +72,7 @@ DESTDIR = # Programs to make tags files. ETAGS = etags -CTAGS = ctags -tw +CTAGS = ctags -w CFLAGS = @CFLAGS@ LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' diff --git a/aclocal.m4 b/aclocal.m4 index ba2446e..6899e82 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -2207,7 +2207,7 @@ main(c, v) exit (255); /* crack s */ - for (i = 0; i < (sizeof(s) - 8); i++) + for (i = 0; i < (sizeof(s) * 8); i++) { n = (s >> i) & 0xff; if (n == 42) diff --git a/display.c b/display.c index 491b7d4..38b3d0e 100644 --- a/display.c +++ b/display.c @@ -3271,6 +3271,9 @@ _rl_update_final (void) { int full_lines, woff, botline_length; + if (line_structures_initialized == 0) + return; + full_lines = 0; /* If the cursor is the only thing on an otherwise-blank last line, compensate so we don't print an extra CRLF. */ diff --git a/doc/readline.dvi b/doc/readline.dvi index 5f959ec..cd68b10 100644 Binary files a/doc/readline.dvi and b/doc/readline.dvi differ diff --git a/doc/readline.html b/doc/readline.html index 9d76681..63a30b6 100644 --- a/doc/readline.html +++ b/doc/readline.html @@ -1,6 +1,6 @@ - + +