Blame SOURCES/readline62-001

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