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.2 / 7.2.145 < prev    next >
Encoding:
Internet Message Format  |  2009-03-17  |  3.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.2.145
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.2.145
  11. Problem:    White space in ":cscope find" is not ignored.
  12. Solution:   Ignore the white space, but not when the leading white space is
  13.         useful for the argument.
  14. Files:        runtime/doc/if_cscop.txt, src/if_cscope.c
  15.  
  16.  
  17. *** ../vim-7.2.144/runtime/doc/if_cscop.txt    Sat Aug  9 19:36:48 2008
  18. --- runtime/doc/if_cscop.txt    Wed Mar 18 14:30:09 2009
  19. ***************
  20. *** 1,4 ****
  21. ! *if_cscop.txt*  For Vim version 7.2.  Last change: 2005 Mar 29
  22.   
  23.   
  24.             VIM REFERENCE MANUAL    by Andy Kahn
  25. --- 1,4 ----
  26. ! *if_cscop.txt*  For Vim version 7.2.  Last change: 2009 Mar 18
  27.   
  28.   
  29.             VIM REFERENCE MANUAL    by Andy Kahn
  30. ***************
  31. *** 131,141 ****
  32.           7 or f: Find this file
  33.           8 or i: Find files #including this file
  34.   
  35.       EXAMPLES >
  36.           :cscope find c vim_free
  37. !         :cscope find 3 vim_free
  38.   <
  39. !         These two examples perform the same query. >
  40.   
  41.           :cscope find 0 DEFAULT_TERM
  42.   <
  43. --- 131,152 ----
  44.           7 or f: Find this file
  45.           8 or i: Find files #including this file
  46.   
  47. +     For all types, except 4 and 6, leading white space for {name} is
  48. +     removed.  For 4 and 6 there is exactly one space between {querytype}
  49. +     and {name}.  Further white space is included in {name}.
  50.       EXAMPLES >
  51.           :cscope find c vim_free
  52. !         :cscope find 3  vim_free
  53. ! <
  54. !         These two examples perform the same query: functions calling
  55. !         "vim_free". >
  56. !         :cscope find t initOnce
  57. !         :cscope find t  initOnce
  58.   <
  59. !         The first one searches for the text "initOnce", the second one for
  60. !         " initOnce". >
  61.   
  62.           :cscope find 0 DEFAULT_TERM
  63.   <
  64. *** ../vim-7.2.144/src/if_cscope.c    Wed Mar 18 12:50:58 2009
  65. --- src/if_cscope.c    Wed Mar 18 13:23:53 2009
  66. ***************
  67. *** 764,769 ****
  68. --- 764,770 ----
  69.   {
  70.       char *cmd;
  71.       short search;
  72. +     char *pat;
  73.   
  74.       switch (csoption[0])
  75.       {
  76. ***************
  77. *** 797,806 ****
  78.       return NULL;
  79.       }
  80.   
  81. !     if ((cmd = (char *)alloc((unsigned)(strlen(pattern) + 2))) == NULL)
  82.       return NULL;
  83.   
  84. !     (void)sprintf(cmd, "%d%s", search, pattern);
  85.   
  86.       return cmd;
  87.   } /* cs_create_cmd */
  88. --- 798,814 ----
  89.       return NULL;
  90.       }
  91.   
  92. !     /* Skip white space before the patter, except for text and pattern search,
  93. !      * they may want to use the leading white space. */
  94. !     pat = pattern;
  95. !     if (search != 4 && search != 6)
  96. !     while vim_iswhite(*pat)
  97. !         ++pat;
  98. !     if ((cmd = (char *)alloc((unsigned)(strlen(pat) + 2))) == NULL)
  99.       return NULL;
  100.   
  101. !     (void)sprintf(cmd, "%d%s", search, pat);
  102.   
  103.       return cmd;
  104.   } /* cs_create_cmd */
  105. *** ../vim-7.2.144/src/version.c    Wed Mar 18 14:19:28 2009
  106. --- src/version.c    Wed Mar 18 14:28:46 2009
  107. ***************
  108. *** 678,679 ****
  109. --- 678,681 ----
  110.   {   /* Add new patch number below this line */
  111. + /**/
  112. +     145,
  113.   /**/
  114.  
  115. -- 
  116. Google is kind of like Dr. Who's Tardis; it's weirder on the
  117. inside than on the outside...
  118.  
  119.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  120. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  121. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  122.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  123.