2
1

bash-4.2-002.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.2
  4. Patch-ID: bash42-002
  5. Bug-Reported-by: Clark J. Wang <dearvoid@gmail.com>
  6. Bug-Reference-ID: <AANLkTimGbW7aC4E5infXP6ku5WPci4t=xVc+L1SyHqrD@mail.gmail.com>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00157.html
  8. Bug-Description:
  9. The readline vi-mode `cc', `dd', and `yy' commands failed to modify the
  10. entire line.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-4.2-patched/lib/readline/vi_mode.c 2010-11-20 19:51:39.000000000 -0500
  13. --- ./lib/readline/vi_mode.c 2011-02-17 20:24:25.000000000 -0500
  14. ***************
  15. *** 1115,1119 ****
  16. _rl_vi_last_motion = c;
  17. RL_UNSETSTATE (RL_STATE_VIMOTION);
  18. ! return (0);
  19. }
  20. #if defined (READLINE_CALLBACKS)
  21. --- 1115,1119 ----
  22. _rl_vi_last_motion = c;
  23. RL_UNSETSTATE (RL_STATE_VIMOTION);
  24. ! return (vidomove_dispatch (m));
  25. }
  26. #if defined (READLINE_CALLBACKS)
  27. *** ../bash-4.2-patched/lib/readline/callback.c 2010-06-06 12:18:58.000000000 -0400
  28. --- ./lib/readline/callback.c 2011-02-17 20:43:28.000000000 -0500
  29. ***************
  30. *** 149,152 ****
  31. --- 149,155 ----
  32. /* Should handle everything, including cleanup, numeric arguments,
  33. and turning off RL_STATE_VIMOTION */
  34. + if (RL_ISSTATE (RL_STATE_NUMERICARG) == 0)
  35. + _rl_internal_char_cleanup ();
  36. +
  37. return;
  38. }
  39. *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
  40. --- ./patchlevel.h Thu Feb 24 21:41:34 2011
  41. ***************
  42. *** 26,30 ****
  43. looks for to find the patch level (for the sccs version string). */
  44. ! #define PATCHLEVEL 1
  45. #endif /* _PATCHLEVEL_H_ */
  46. --- 26,30 ----
  47. looks for to find the patch level (for the sccs version string). */
  48. ! #define PATCHLEVEL 2
  49. #endif /* _PATCHLEVEL_H_ */