2
1

bash32-031 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 3.2
  4. Patch-ID: bash32-031
  5. Bug-Reported-by: Miroslav Lichvar <mlichvar@redhat.com>
  6. Bug-Reference-ID: Fri, 02 Nov 2007 14:07:45 +0100
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2007-11/msg00000.html
  8. Bug-Description:
  9. In certain cases when outputting characters at the end of the line,
  10. e.g., when displaying the prompt string, readline positions the cursor
  11. incorrectly if the prompt string contains invisible characters and the
  12. text being drawn begins before the last invisible character in the line.
  13. Patch:
  14. *** bash-3.2-patched/lib/readline/display.c 2007-08-25 13:47:08.000000000 -0400
  15. --- bash-3.2/lib/readline/display.c 2007-11-10 17:51:29.000000000 -0500
  16. ***************
  17. *** 1566,1574 ****
  18. else
  19. {
  20. - /* We have horizontal scrolling and we are not inserting at
  21. - the end. We have invisible characters in this line. This
  22. - is a dumb update. */
  23. _rl_output_some_chars (nfd, temp);
  24. _rl_last_c_pos += col_temp;
  25. return;
  26. }
  27. --- 1619,1632 ----
  28. else
  29. {
  30. _rl_output_some_chars (nfd, temp);
  31. _rl_last_c_pos += col_temp;
  32. + /* If nfd begins before any invisible characters in the prompt,
  33. + adjust _rl_last_c_pos to account for wrap_offset and set
  34. + cpos_adjusted to let the caller know. */
  35. + if (current_line == 0 && wrap_offset && ((nfd - new) <= prompt_last_invisible))
  36. + {
  37. + _rl_last_c_pos -= wrap_offset;
  38. + cpos_adjusted = 1;
  39. + }
  40. return;
  41. }
  42. *** bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
  43. --- bash-3.2/patchlevel.h Mon Oct 16 14:22:54 2006
  44. ***************
  45. *** 26,30 ****
  46. looks for to find the patch level (for the sccs version string). */
  47. ! #define PATCHLEVEL 30
  48. #endif /* _PATCHLEVEL_H_ */
  49. --- 26,30 ----
  50. looks for to find the patch level (for the sccs version string). */
  51. ! #define PATCHLEVEL 31
  52. #endif /* _PATCHLEVEL_H_ */