readline52-009.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. READLINE PATCH REPORT
  2. =====================
  3. Readline-Release: 5.2
  4. Patch-ID: readline52-009
  5. Bug-Reported-by: dAniel hAhler <ubuntu@thequod.de>
  6. Bug-Reference-ID:
  7. Bug-Reference-URL:
  8. Bug-Description:
  9. Under some circumstances, readline will incorrectly display a prompt string
  10. containing invisible characters after the final newline.
  11. Patch:
  12. *** ../readline-5.2-patched/display.c 2007-08-25 13:47:08.000000000 -0400
  13. --- ./display.c 2007-11-10 17:51:29.000000000 -0500
  14. ***************
  15. *** 392,396 ****
  16. local_prompt = expand_prompt (p, &prompt_visible_length,
  17. &prompt_last_invisible,
  18. ! (int *)NULL,
  19. &prompt_physical_chars);
  20. c = *t; *t = '\0';
  21. --- 420,424 ----
  22. local_prompt = expand_prompt (p, &prompt_visible_length,
  23. &prompt_last_invisible,
  24. ! &prompt_invis_chars_first_line,
  25. &prompt_physical_chars);
  26. c = *t; *t = '\0';
  27. ***************
  28. *** 399,403 ****
  29. local_prompt_prefix = expand_prompt (prompt, &prompt_prefix_length,
  30. (int *)NULL,
  31. ! &prompt_invis_chars_first_line,
  32. (int *)NULL);
  33. *t = c;
  34. --- 427,431 ----
  35. local_prompt_prefix = expand_prompt (prompt, &prompt_prefix_length,
  36. (int *)NULL,
  37. ! (int *)NULL,
  38. (int *)NULL);
  39. *t = c;