7
Bug-Reported-by: Max Horn <max@quendi.de>
8
Bug-Reference-ID: <20CC5C60-07C3-4E41-9817-741E48D407C5@quendi.de>
9
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2012-06/msg00005.html
13
A change between bash-4.1 and bash-4.2 to prevent the readline input hook
14
from being called too frequently had the side effect of causing delays
15
when reading pasted input on systems such as Mac OS X. This patch fixes
16
those delays while retaining the bash-4.2 behavior.
18
Patch (apply with `patch -p0'):
20
Index: b/bash/lib/readline/input.c
21
===================================================================
22
--- a/bash/lib/readline/input.c
23
+++ b/bash/lib/readline/input.c
31
rl_key_sequence_length++;
37
- if (rl_gather_tyi () < 0) /* XXX - EIO */
38
+ if (rl_get_char (&c) != 0)
41
+ if ((r = rl_gather_tyi ()) < 0) /* XXX - EIO */
46
+ else if (r == 1) /* read something */
50
- if (rl_get_char (&c) != 0)
52
if (rl_done) /* XXX - experimental */
55
Index: b/bash/patchlevel.h
56
===================================================================
57
--- a/bash/patchlevel.h
58
+++ b/bash/patchlevel.h
60
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
61
looks for to find the patch level (for the sccs version string). */
63
-#define PATCHLEVEL 30
64
+#define PATCHLEVEL 31
66
#endif /* _PATCHLEVEL_H_ */