cd703d
			   READLINE PATCH REPORT
cd703d
			   =====================
cd703d
cd703d
Readline-Release: 6.2
cd703d
Patch-ID: readline62-001
cd703d
cd703d
Bug-Reported-by:	Clark J. Wang <dearvoid@gmail.com>
cd703d
Bug-Reference-ID:	<AANLkTimGbW7aC4E5infXP6ku5WPci4t=xVc+L1SyHqrD@mail.gmail.com>
cd703d
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00157.html
cd703d
cd703d
Bug-Description:
cd703d
cd703d
The readline vi-mode `cc', `dd', and `yy' commands failed to modify the
cd703d
entire line.
cd703d
cd703d
[This patch intentionally does not modify patchlevel]
cd703d
cd703d
Patch (apply with `patch -p0'):
cd703d
cd703d
*** ../readline-6.2-patched/vi_mode.c	2010-11-20 19:51:39.000000000 -0500
cd703d
--- vi_mode.c	2011-02-17 20:24:25.000000000 -0500
cd703d
***************
cd703d
*** 1115,1119 ****
cd703d
        _rl_vi_last_motion = c;
cd703d
        RL_UNSETSTATE (RL_STATE_VIMOTION);
cd703d
!       return (0);
cd703d
      }
cd703d
  #if defined (READLINE_CALLBACKS)
cd703d
--- 1115,1119 ----
cd703d
        _rl_vi_last_motion = c;
cd703d
        RL_UNSETSTATE (RL_STATE_VIMOTION);
cd703d
!       return (vidomove_dispatch (m));
cd703d
      }
cd703d
  #if defined (READLINE_CALLBACKS)
cd703d
*** ../readline-6.2-patched/callback.c	2010-06-06 12:18:58.000000000 -0400
cd703d
--- callback.c	2011-02-17 20:43:28.000000000 -0500
cd703d
***************
cd703d
*** 149,152 ****
cd703d
--- 149,155 ----
cd703d
  	  /* Should handle everything, including cleanup, numeric arguments,
cd703d
  	     and turning off RL_STATE_VIMOTION */
cd703d
+ 	  if (RL_ISSTATE (RL_STATE_NUMERICARG) == 0)
cd703d
+ 	    _rl_internal_char_cleanup ();
cd703d
+ 
cd703d
  	  return;
cd703d
  	}