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