]> granicus.if.org Git - vim/commitdiff
updated for version 7.0060
authorBram Moolenaar <Bram@vim.org>
Wed, 16 Mar 2005 09:50:44 +0000 (09:50 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 16 Mar 2005 09:50:44 +0000 (09:50 +0000)
runtime/doc/usr_41.txt
src/tag.c

index 17bc3eac16ee88e90e3de0062c2abf1c2b037f92..27349896fef2c4a4b5fd1b6d46d0e70a39e5523f 100644 (file)
@@ -1,4 +1,4 @@
-*usr_41.txt*   For Vim version 7.0aa.  Last change: 2005 Feb 23
+*usr_41.txt*   For Vim version 7.0aa.  Last change: 2005 Mar 15
 
                     VIM USER MANUAL - by Bram Moolenaar
 
@@ -758,6 +758,7 @@ Various:
        getreg()                get contents of a register
        getregtype()            get type of a register
        setreg()                set contents and type of a register
+       taglist()               get list of matching tags
 
 ==============================================================================
 *41.7* Defining a function
index 082287596731ef09d4ad23a0f1c3ef5cc53570af..fa8016269ad662617ab77a35d33dc7bd16b623fd 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -3547,14 +3547,20 @@ static int add_tag_field __ARGS((dict_T *dict, char *field_name, char_u *start,
 add_tag_field(dict, field_name, start, end)
     dict_T  *dict;
     char    *field_name;
-    char_u  *start;
-    char_u  *end;
+    char_u  *start;            /* start of the value */
+    char_u  *end;              /* after the value; can be NULL */
 {
     char_u     buf[MAXPATHL];
     int                len = 0;
 
     if (start != NULL)
     {
+       if (end == NULL)
+       {
+           end = start + STRLEN(start);
+           while (end > start && (end[-1] == '\r' || end[-1] == '\n'))
+               --end;
+       }
        len = end - start;
        if (len > sizeof(buf) - 1)
            len = sizeof(buf) - 1;