Karsten Hopp 8880ee
To: vim_dev@googlegroups.com
Karsten Hopp 8880ee
Subject: Patch 7.3.704
Karsten Hopp 8880ee
Fcc: outbox
Karsten Hopp 8880ee
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8880ee
Mime-Version: 1.0
Karsten Hopp 8880ee
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8880ee
Content-Transfer-Encoding: 8bit
Karsten Hopp 8880ee
------------
Karsten Hopp 8880ee
Karsten Hopp 8880ee
Patch 7.3.704
Karsten Hopp 8880ee
Problem:    Repeating "cgn" does not always work correctly.
Karsten Hopp 8880ee
Solution:   Also fetch the operator character. (Christian Brabandt)
Karsten Hopp 8880ee
Files:      src/normal.c
Karsten Hopp 8880ee
Karsten Hopp 8880ee
Karsten Hopp 8880ee
*** ../vim-7.3.703/src/normal.c	2012-08-15 13:30:55.000000000 +0200
Karsten Hopp 8880ee
--- src/normal.c	2012-10-21 03:51:38.000000000 +0200
Karsten Hopp 8880ee
***************
Karsten Hopp 8880ee
*** 960,967 ****
Karsten Hopp 8880ee
  #ifdef FEAT_CMDL_INFO
Karsten Hopp 8880ee
  	    need_flushbuf |= add_to_showcmd(ca.nchar);
Karsten Hopp 8880ee
  #endif
Karsten Hopp 8880ee
  	    if (ca.nchar == 'r' || ca.nchar == '\'' || ca.nchar == '`'
Karsten Hopp 8880ee
! 						      || ca.nchar == Ctrl_BSL)
Karsten Hopp 8880ee
  	    {
Karsten Hopp 8880ee
  		cp = &ca.extra_char;	/* need to get a third character */
Karsten Hopp 8880ee
  		if (ca.nchar != 'r')
Karsten Hopp 8880ee
--- 960,970 ----
Karsten Hopp 8880ee
  #ifdef FEAT_CMDL_INFO
Karsten Hopp 8880ee
  	    need_flushbuf |= add_to_showcmd(ca.nchar);
Karsten Hopp 8880ee
  #endif
Karsten Hopp 8880ee
+ 	    /* For "gn" from redo, need to get one more char to determine the
Karsten Hopp 8880ee
+ 	     * operator */
Karsten Hopp 8880ee
  	    if (ca.nchar == 'r' || ca.nchar == '\'' || ca.nchar == '`'
Karsten Hopp 8880ee
! 						       || ca.nchar == Ctrl_BSL
Karsten Hopp 8880ee
! 		  || ((ca.nchar == 'n' || ca.nchar == 'N') && !stuff_empty()))
Karsten Hopp 8880ee
  	    {
Karsten Hopp 8880ee
  		cp = &ca.extra_char;	/* need to get a third character */
Karsten Hopp 8880ee
  		if (ca.nchar != 'r')
Karsten Hopp 8880ee
***************
Karsten Hopp 8880ee
*** 1083,1088 ****
Karsten Hopp 8880ee
--- 1086,1093 ----
Karsten Hopp 8880ee
  		ca.nchar = ca.extra_char;
Karsten Hopp 8880ee
  		idx = find_command(ca.cmdchar);
Karsten Hopp 8880ee
  	    }
Karsten Hopp 8880ee
+ 	    else if (ca.nchar == 'n' || ca.nchar == 'N')
Karsten Hopp 8880ee
+ 		ca.oap->op_type = get_op_type(*cp, NUL);
Karsten Hopp 8880ee
  	    else if (*cp == Ctrl_BSL)
Karsten Hopp 8880ee
  	    {
Karsten Hopp 8880ee
  		long towait = (p_ttm >= 0 ? p_ttm : p_tm);
Karsten Hopp 8880ee
***************
Karsten Hopp 8880ee
*** 8009,8015 ****
Karsten Hopp 8880ee
  #ifdef FEAT_VISUAL
Karsten Hopp 8880ee
  	if (!current_search(cap->count1, cap->nchar == 'n'))
Karsten Hopp 8880ee
  #endif
Karsten Hopp 8880ee
! 	    beep_flush();
Karsten Hopp 8880ee
  	break;
Karsten Hopp 8880ee
  
Karsten Hopp 8880ee
      /*
Karsten Hopp 8880ee
--- 8014,8020 ----
Karsten Hopp 8880ee
  #ifdef FEAT_VISUAL
Karsten Hopp 8880ee
  	if (!current_search(cap->count1, cap->nchar == 'n'))
Karsten Hopp 8880ee
  #endif
Karsten Hopp 8880ee
! 	    clearopbeep(oap);
Karsten Hopp 8880ee
  	break;
Karsten Hopp 8880ee
  
Karsten Hopp 8880ee
      /*
Karsten Hopp 8880ee
*** ../vim-7.3.703/src/version.c	2012-10-21 03:45:57.000000000 +0200
Karsten Hopp 8880ee
--- src/version.c	2012-10-21 03:53:51.000000000 +0200
Karsten Hopp 8880ee
***************
Karsten Hopp 8880ee
*** 721,722 ****
Karsten Hopp 8880ee
--- 721,724 ----
Karsten Hopp 8880ee
  {   /* Add new patch number below this line */
Karsten Hopp 8880ee
+ /**/
Karsten Hopp 8880ee
+     704,
Karsten Hopp 8880ee
  /**/
Karsten Hopp 8880ee
Karsten Hopp 8880ee
-- 
Karsten Hopp 8880ee
The word "leader" is derived from the word "lead", as in the material that
Karsten Hopp 8880ee
bullets are made out of.  The term "leader" was popularized at about the same
Karsten Hopp 8880ee
time as the invention of firearms.  It grew out of the observation that the
Karsten Hopp 8880ee
person in charge of every organization was the person whom everyone wanted to
Karsten Hopp 8880ee
fill with hot lead.
Karsten Hopp 8880ee
   I don't recomment this; it's just a point of historical interest.
Karsten Hopp 8880ee
				(Scott Adams - The Dilbert principle)
Karsten Hopp 8880ee
Karsten Hopp 8880ee
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8880ee
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8880ee
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8880ee
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///