]> git.ipfire.org Git - thirdparty/readline.git/commitdiff
Readline-2.2.1 import
authorChet Ramey <chet.ramey@case.edu>
Wed, 23 Nov 2011 23:48:31 +0000 (18:48 -0500)
committerChet Ramey <chet.ramey@case.edu>
Wed, 23 Nov 2011 23:48:31 +0000 (18:48 -0500)
CHANGES
Makefile.in
display.c
doc/Makefile.in
parens.c

diff --git a/CHANGES b/CHANGES
index 29122f99e12a749f8689fad1da286a83c6247fa7..382406e30dbf1f89d2678e90c1d851e04846cc26 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,22 @@
+This document details the changes between this version, readline-2.2.1,
+and the previous version, readline-2.2.
+
+1.  Changes to Readline
+
+a.  The `make install' target was corrected so that it did not move the
+    newly-installed libreadline.a to libhistory.old
+
+b.  The `make install' target for the documentation will now install the
+    info files from the source directory if they do not appear in the
+    build directory, since they are shipped in the readline tar file.
+
+c.  Fixed a problem with redisplay that showed up when the prompt string was
+    longer than the screen width and the prompt contained invisible characters.
+
+d.  Fixed a problem with the paren matching code -- the blink was far too
+    short (it's specified in microseconds, not milliseconds, Chet!).
+
+------------------------------------------------------------------------------
 This document details the changes between this version, readline-2.2,
 and the previous version, readline-2.1.
 
@@ -63,4 +82,3 @@ g.  The key sequence translation code now understands printf-style backslash
     may be used in key sequence definitions or macro values.
 
 h.  An `$include' inputrc file parser directive has been added.
-
index f4db3bb430f09e58e1026a8aaee8b963b671f32a..63ac0385f33c8970d7a91f4940b8a5b10234f923 100644 (file)
@@ -196,14 +196,14 @@ examples: force
 
 force:
 
-install: installdirs libreadline.a
+install: installdirs $(STATIC_LIBS)
        for f in ${INSTALLED_HEADERS}; do \
                $(INSTALL_DATA) $(srcdir)/$$f $(includedir)/readline ; \
        done
        -$(MV) $(libdir)/libreadline.a $(libdir)/libreadline.old
        $(INSTALL_DATA) libreadline.a $(libdir)/libreadline.a
        -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/libreadline.a
-       -$(MV) $(libdir)/libreadline.a $(libdir)/libhistory.old
+       -$(MV) $(libdir)/libhistory.a $(libdir)/libhistory.old
        $(INSTALL_DATA) libhistory.a $(libdir)/libhistory.a
        -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/libhistory.a
        -( if test -d doc ; then \
index edb5b20dc556432ded643689d6d656455b58b91c..f7ec69b247c121054ca97c6cb6148b498ade8c2f 100644 (file)
--- a/display.c
+++ b/display.c
@@ -423,7 +423,14 @@ rl_redisplay ()
      contents of the command line? */
   while (lpos >= screenwidth)
     {
+#if 0
       temp = ((newlines + 1) * screenwidth) - ((newlines == 0) ? wrap_offset : 0);
+#else
+      /* XXX - possible fix from Darin Johnson <darin@acuson.com> for prompt
+        string with invisible characters that is longer than the screen
+        width. */
+      temp = ((newlines + 1) * screenwidth) + ((newlines == 0) ? wrap_offset : 0);
+#endif
       inv_lbreaks[++newlines] = temp;
       lpos -= screenwidth;
     }
index 63da1be427edad5379c90dc00844cfa9b504f1f1..2eabb410833ffc6b4a86a2f020c2ba09f4db6019 100644 (file)
@@ -113,8 +113,16 @@ installdirs:       $(top_srcdir)/support/mkdirs
        -$(SHELL) $(top_srcdir)/support/mkdirs $(infodir) $(man3dir)
 
 install:       installdirs info
-       ${INSTALL_DATA} readline.info $(infodir)/readline.info
-       ${INSTALL_DATA} history.info $(infodir)/history.info
+       if test -f readline.info; then \
+               ${INSTALL_DATA} readline.info $(infodir)/readline.info; \
+       else \
+               ${INSTALL_DATA} $(srcdir)/readline.info $(infodir)/readline.info; \
+       fi
+       if test -f history.info; then \
+               ${INSTALL_DATA} history.info $(infodir)/history.info; \
+       else \
+               ${INSTALL_DATA} $(srcdir)/history.info $(infodir)/history.info; \
+       fi
        if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
                install-info --dir-file=$(infodir)/dir $(infodir)/readline.info ; \
                install-info --dir-file=$(infodir)/dir $(infodir)/history.info ; \
index 2c7251fd9804ede8f5645f1f47da0aff48adbe2a..a500c0afac717c6ef17c39cb6194cea758ed0c70 100644 (file)
--- a/parens.c
+++ b/parens.c
@@ -102,7 +102,7 @@ rl_insert_close (count, invoking_key)
       FD_ZERO (&readfds);
       FD_SET (fileno (rl_instream), &readfds);
       timer.tv_sec = 0;
-      timer.tv_usec = 500;
+      timer.tv_usec = 500000;
 
       orig_point = rl_point;
       rl_point = match_point;