readline52-011.patch 888 B

1234567891011121314151617181920212223242526272829303132
  1. READLINE PATCH REPORT
  2. =====================
  3. Readline-Release: 5.2
  4. Patch-ID: readline52-011
  5. Bug-Reported-by: Uwe Doering <gemini@geminix.org>
  6. Bug-Reference-ID: <46F3DD72.2090801@geminix.org>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2007-09/msg00102.html
  8. Bug-Description:
  9. There is an off-by-one error in the code that buffers characters received
  10. very quickly in succession, causing characters to be dropped.
  11. Patch:
  12. *** ../readline-5.2-patched/input.c 2007-08-25 13:47:10.000000000 -0400
  13. --- ./input.c 2007-10-12 22:55:25.000000000 -0400
  14. ***************
  15. *** 155,159 ****
  16. pop_index--;
  17. if (pop_index < 0)
  18. ! pop_index = ibuffer_len - 1;
  19. ibuffer[pop_index] = key;
  20. return (1);
  21. --- 155,159 ----
  22. pop_index--;
  23. if (pop_index < 0)
  24. ! pop_index = ibuffer_len;
  25. ibuffer[pop_index] = key;
  26. return (1);