From 656e206e69f0a893b48130d02a92e1e1d1de9f53 Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Mon, 5 Oct 2020 18:20:49 -0400 Subject: [PATCH] Readline-8.1-rc1 release --- CHANGES | 4 ++ Makefile.in | 2 +- aclocal.m4 | 2 +- display.c | 3 + doc/readline.dvi | Bin 323308 -> 323584 bytes doc/readline.html | 10 ++- doc/readline.info | 106 +++++++++++++++-------------- doc/readline.pdf | Bin 398499 -> 398664 bytes doc/readline.ps | 166 +++++++++++++++++++++++---------------------- doc/rluserman.dvi | Bin 114520 -> 114796 bytes doc/rluserman.html | 10 ++- doc/rluserman.info | 18 +++-- doc/rluserman.pdf | Bin 232725 -> 232889 bytes doc/rluserman.ps | 164 +++++++++++++++++++++++--------------------- 14 files changed, 260 insertions(+), 225 deletions(-) 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 5f959ec08c40f8d188239a5a43cf80611080d872..cd68b1065c314dc9d4cb6982db62a36d11bf5a44 100644 GIT binary patch delta 1328 zc-k${e@s(X6bEq5xvxbmEtFru84TTsa~mK~s{E)@mZ2ixG+>5i8!NQX256;w1>!QW z#BD}ID9?EdWMO6u11@HYamz$oEo0n-aW_N~#g@JV8;}l={<#HIw5(cBcO&K>rA}G~!v~U|3g~4^X zLAo~^HsjtD>dS_W?UT!*!!C*TR&jt#25UX;M(I#b*~&Vr+1!88V3%A0Z=>DgtdXpqI&a#^GhP0YU|yr$B{#*? z(`2}|-r3L~RaQ^m! zlrVu>w});pLDCEICkFT@hKBG2$`<@`avozat}&ifnIIWZE__>{P2R42Hl71ET&O1z+)@?9P(+eP+9o!Bk zfMF^Xz&Voe>a(=a0y)A+?7}trt_5aRud~uZxJ=}(feJ;iUB11e2<}8EtuB9zekWZj zgLr1%0WCn3=f-!!BFxg?GGHsau?rS7SbUi4ZUwv_iTk^_KC;3kHCC6hatEA>L}xC& zkctItlNYQS^nSxNbp(<%=xgG7=>&Woi6>^cGW(!Ki+%H4_lLm|g=c%XddK0Z23ct4 zcav}>9Iv%$4^J9LjYeSbB+b(fkJ&Na5_@0gH{BayrV`l|dzaOnJ*lXe8%tQFO4u|e> zrH$c~7RTneawf1+j}uFw)y!gV6y6H0W+;e%>+xO**W#ZTrN_UHhNh@VQWUB~Q##|x zSTrVNakXzGuoj-D{zYgV5MB+>;*W3cRuf{t~?5kx` zsm0)@Y~3TGF2+ayF++~9Mu1HAqFM0m!Q5~vADCG1xR6+lof3QUK==hB9I;I%hRbA@0hNfGI+X;p zp$U751Y8w!hkhW4mJp*%gI+UDL>E4|O`~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