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 / 6.1.172 < prev    next >
Encoding:
Internet Message Format  |  2002-09-06  |  2.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.172
  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 6.1.172
  11. Problem:    Command line completion of ":tag /pat" does not show the same
  12.         results as the tags the command actually finds. (Gilles Roy)
  13. Solution:   Don't modify the pattern to make it a regexp.
  14. Files:        src/ex_getln.c, src/tag.c
  15.  
  16. *** ../vim61.171/src/ex_getln.c    Sun Jul 14 16:37:14 2002
  17. --- src/ex_getln.c    Sat Sep  7 14:58:21 2002
  18. ***************
  19. *** 2925,2934 ****
  20.        * use with vim_regcomp().  First work out how long it will be:
  21.        */
  22.   
  23. !     /* for help tags the translation is done in find_help_tags() */
  24.       if (context == EXPAND_HELP
  25.           || context == EXPAND_COLORS
  26. !         || context == EXPAND_COMPILER)
  27.           retval = vim_strnsave(fname, len);
  28.       else
  29.       {
  30. --- 2933,2944 ----
  31.        * use with vim_regcomp().  First work out how long it will be:
  32.        */
  33.   
  34. !     /* For help tags the translation is done in find_help_tags().
  35. !      * For a tag pattern starting with "/" no translation is needed. */
  36.       if (context == EXPAND_HELP
  37.           || context == EXPAND_COLORS
  38. !         || context == EXPAND_COMPILER
  39. !         || (context == EXPAND_TAGS && fname[0] == '/'))
  40.           retval = vim_strnsave(fname, len);
  41.       else
  42.       {
  43. *** ../vim61.171/src/tag.c    Thu May 16 22:01:33 2002
  44. --- src/tag.c    Sat Sep  7 14:58:58 2002
  45. ***************
  46. *** 2961,2968 ****
  47.       tagnmflag = TAG_NAMES;
  48.       else
  49.       tagnmflag = 0;
  50. !     if (pat[0] == '^' && pat[1] == '/')
  51. !     ret = find_tags(pat + 2, num_file, file,
  52.                   TAG_REGEXP | tagnmflag | TAG_VERBOSE, TAG_MANY);
  53.       else
  54.       ret = find_tags(pat, num_file, file,
  55. --- 2961,2968 ----
  56.       tagnmflag = TAG_NAMES;
  57.       else
  58.       tagnmflag = 0;
  59. !     if (pat[0] == '/')
  60. !     ret = find_tags(pat + 1, num_file, file,
  61.                   TAG_REGEXP | tagnmflag | TAG_VERBOSE, TAG_MANY);
  62.       else
  63.       ret = find_tags(pat, num_file, file,
  64. *** ../vim61.171/src/version.c    Fri Aug 30 22:36:15 2002
  65. --- src/version.c    Sat Sep  7 15:03:57 2002
  66. ***************
  67. *** 608,609 ****
  68. --- 608,611 ----
  69.   {   /* Add new patch number below this line */
  70. + /**/
  71. +     172,
  72.   /**/
  73.  
  74. -- 
  75. TALL KNIGHT: We are now no longer the Knights Who Say Ni!
  76. ONE KNIGHT:  Ni!
  77. OTHERS:      Sh!
  78. ONE KNIGHT:  (whispers) Sorry.
  79.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  80.  
  81.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  82. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  83. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  84.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  85.