readline-6.2-pl1.patch 1.2 KB

1234567891011121314151617181920212223242526272829
  1. Bug-Reported-by: Clark J. Wang <dearvoid@gmail.com>
  2. Bug-Reference-ID: <AANLkTimGbW7aC4E5infXP6ku5WPci4t=xVc+L1SyHqrD@mail.gmail.com>
  3. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00157.html
  4. diff -Nura readline-6.2/callback.c readline-6.2-pl1/callback.c
  5. --- readline-6.2/callback.c 2010-06-06 13:18:58.000000000 -0300
  6. +++ readline-6.2-pl1/callback.c 2011-04-19 14:20:00.269829168 -0300
  7. @@ -148,6 +148,9 @@
  8. eof = _rl_vi_domove_callback (_rl_vimvcxt);
  9. /* Should handle everything, including cleanup, numeric arguments,
  10. and turning off RL_STATE_VIMOTION */
  11. + if (RL_ISSTATE (RL_STATE_NUMERICARG) == 0)
  12. + _rl_internal_char_cleanup ();
  13. +
  14. return;
  15. }
  16. #endif
  17. diff -Nura readline-6.2/vi_mode.c readline-6.2-pl1/vi_mode.c
  18. --- readline-6.2/vi_mode.c 2010-11-20 21:51:39.000000000 -0300
  19. +++ readline-6.2-pl1/vi_mode.c 2011-04-19 14:19:24.510586785 -0300
  20. @@ -1114,7 +1114,7 @@
  21. rl_beg_of_line (1, c);
  22. _rl_vi_last_motion = c;
  23. RL_UNSETSTATE (RL_STATE_VIMOTION);
  24. - return (0);
  25. + return (vidomove_dispatch (m));
  26. }
  27. #if defined (READLINE_CALLBACKS)
  28. /* XXX - these need to handle rl_universal_argument bindings */