home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.704 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.8 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.704
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.704
  11. Problem:    Repeating "cgn" does not always work correctly.
  12. Solution:   Also fetch the operator character. (Christian Brabandt)
  13. Files:      src/normal.c
  14.  
  15.  
  16. *** ../vim-7.3.703/src/normal.c    2012-08-15 13:30:55.000000000 +0200
  17. --- src/normal.c    2012-10-21 03:51:38.000000000 +0200
  18. ***************
  19. *** 960,967 ****
  20.   #ifdef FEAT_CMDL_INFO
  21.           need_flushbuf |= add_to_showcmd(ca.nchar);
  22.   #endif
  23.           if (ca.nchar == 'r' || ca.nchar == '\'' || ca.nchar == '`'
  24. !                               || ca.nchar == Ctrl_BSL)
  25.           {
  26.           cp = &ca.extra_char;    /* need to get a third character */
  27.           if (ca.nchar != 'r')
  28. --- 960,970 ----
  29.   #ifdef FEAT_CMDL_INFO
  30.           need_flushbuf |= add_to_showcmd(ca.nchar);
  31.   #endif
  32. +         /* For "gn" from redo, need to get one more char to determine the
  33. +          * operator */
  34.           if (ca.nchar == 'r' || ca.nchar == '\'' || ca.nchar == '`'
  35. !                                || ca.nchar == Ctrl_BSL
  36. !           || ((ca.nchar == 'n' || ca.nchar == 'N') && !stuff_empty()))
  37.           {
  38.           cp = &ca.extra_char;    /* need to get a third character */
  39.           if (ca.nchar != 'r')
  40. ***************
  41. *** 1083,1088 ****
  42. --- 1086,1093 ----
  43.           ca.nchar = ca.extra_char;
  44.           idx = find_command(ca.cmdchar);
  45.           }
  46. +         else if (ca.nchar == 'n' || ca.nchar == 'N')
  47. +         ca.oap->op_type = get_op_type(*cp, NUL);
  48.           else if (*cp == Ctrl_BSL)
  49.           {
  50.           long towait = (p_ttm >= 0 ? p_ttm : p_tm);
  51. ***************
  52. *** 8009,8015 ****
  53.   #ifdef FEAT_VISUAL
  54.       if (!current_search(cap->count1, cap->nchar == 'n'))
  55.   #endif
  56. !         beep_flush();
  57.       break;
  58.   
  59.       /*
  60. --- 8014,8020 ----
  61.   #ifdef FEAT_VISUAL
  62.       if (!current_search(cap->count1, cap->nchar == 'n'))
  63.   #endif
  64. !         clearopbeep(oap);
  65.       break;
  66.   
  67.       /*
  68. *** ../vim-7.3.703/src/version.c    2012-10-21 03:45:57.000000000 +0200
  69. --- src/version.c    2012-10-21 03:53:51.000000000 +0200
  70. ***************
  71. *** 721,722 ****
  72. --- 721,724 ----
  73.   {   /* Add new patch number below this line */
  74. + /**/
  75. +     704,
  76.   /**/
  77.  
  78. -- 
  79. The word "leader" is derived from the word "lead", as in the material that
  80. bullets are made out of.  The term "leader" was popularized at about the same
  81. time as the invention of firearms.  It grew out of the observation that the
  82. person in charge of every organization was the person whom everyone wanted to
  83. fill with hot lead.
  84.    I don't recomment this; it's just a point of historical interest.
  85.                 (Scott Adams - The Dilbert principle)
  86.  
  87.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  88. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  89. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  90.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  91.