7 Bug-Reported-by: Clark J. Wang <dearvoid@gmail.com>
8 Bug-Reference-ID: <AANLkTimGbW7aC4E5infXP6ku5WPci4t=xVc+L1SyHqrD@mail.gmail.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00157.html
13 The readline vi-mode `cc', `dd', and `yy' commands failed to modify the
16 Patch (apply with `patch -p0'):
18 --- a/lib/readline/vi_mode.c
19 +++ b/lib/readline/vi_mode.c
20 @@ -1114,7 +1114,7 @@ rl_domove_read_callback (m)
21 rl_beg_of_line (1, c);
22 _rl_vi_last_motion = c;
23 RL_UNSETSTATE (RL_STATE_VIMOTION);
25 + return (vidomove_dispatch (m));
27 #if defined (READLINE_CALLBACKS)
28 /* XXX - these need to handle rl_universal_argument bindings */
29 --- a/lib/readline/callback.c
30 +++ b/lib/readline/callback.c
31 @@ -148,6 +148,9 @@ rl_callback_read_char ()
32 eof = _rl_vi_domove_callback (_rl_vimvcxt);
33 /* Should handle everything, including cleanup, numeric arguments,
34 and turning off RL_STATE_VIMOTION */
35 + if (RL_ISSTATE (RL_STATE_NUMERICARG) == 0)
36 + _rl_internal_char_cleanup ();
44 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
45 looks for to find the patch level (for the sccs version string). */
50 #endif /* _PATCHLEVEL_H_ */